Home
last modified time | relevance | path

Searched refs:wordwrap (Results 1 – 13 of 13) sorted by relevance

/PHP-8.3/ext/standard/tests/strings/
H A Dwordwrap.phpt2 wordwrap() function
6 var_dump("12345 12345 12345 12345" === wordwrap("12345 12345 12345 12345"));
11 var_dump("123ab123ab123" === wordwrap("123ab123ab123", 3, "ab"));
12 var_dump("123ab123ab123" === wordwrap("123ab123ab123", 5, "ab"));
13 var_dump("123ab 123ab123" === wordwrap("123 123ab123", 3, "ab"));
14 var_dump("123ab123ab123" === wordwrap("123 123ab123", 5, "ab"));
15 var_dump("123 123ab123" === wordwrap("123 123 123", 10, "ab"));
17 var_dump("123ab123ab123" === wordwrap("123ab123ab123", 3, "ab", 1));
23 var_dump("1ab2ab3ab4" === wordwrap("1234", 1, "ab", 1));
31 wordwrap(chr(0), 0, "");
[all …]
H A Dwordwrap_basic.phpt2 Test wordwrap() function : basic functionality
5 echo "*** Testing wordwrap() : basic functionality ***\n";
12 // Calling wordwrap() with default arguments
13 var_dump( wordwrap($str) );
15 // Calling wordwrap() with all possible optional arguments
17 var_dump( wordwrap($str, $width) );
19 var_dump( wordwrap($str, $width, $break) );
21 // Calling wordwrap() with all arguments
25 var_dump( wordwrap($str, $width, $break, $cut) );
30 var_dump( wordwrap($str, $width, $break, $cut) );
[all …]
H A Dwordwrap_variation5.phpt2 Test wordwrap() function : usage variations - valid break arguments(spaces)
6 *test wordwrap() with break arguments as single spaces
9 echo "*** Testing wordwrap() : usage variations ***\n";
18 var_dump( wordwrap($str, $width) ); // default break and cut value
23 var_dump( wordwrap($str, $width, $break) );
24 var_dump( wordwrap($str, $width, $break1) );
28 var_dump( wordwrap($str, $width, $break, $cut) );
29 var_dump( wordwrap($str, $width, $break1, $cut) );
33 var_dump( wordwrap($str, $width, $break, $cut) );
34 var_dump( wordwrap($str, $width, $break1, $cut) );
[all …]
H A Dwordwrap_error.phpt2 Test wordwrap() function : error conditions
5 echo "*** Testing wordwrap() : error conditions ***\n";
7 $str = 'testing wordwrap function';
13 echo "\n-- Testing wordwrap() function with negative/zero value for width argument --\n";
18 var_dump( wordwrap($str, $width, $break, $cut) );
26 wordwrap($str, $width, $break, $cut);
35 var_dump( wordwrap($str, $width, $break, $cut) );
41 var_dump( wordwrap($str, $width, $break, $cut) );
44 *** Testing wordwrap() : error conditions ***
46 -- Testing wordwrap() function with negative/zero value for width argument --
[all …]
H A Dbug28386.phpt2 Bug #28386 (wordwrap() wraps text 1 character too soon)
7 echo wordwrap($string, 9);
H A Dwordwrap_memory_limit.phpt2 No overflow should occur during the memory_limit check for wordwrap()
15 wordwrap($str, 1, $str2);
H A Dwordwrap_memory_limit_32bit.phpt2 No overflow should occur during the memory_limit check for wordwrap()
15 wordwrap($str, 1, $str2);
H A Dbug20927.phpt2 Bug #20927 (Segfault on wordwrap statement)
12 var_dump(wordwrap($string, $linelength, $break, 1));
/PHP-8.3/ext/phar/phar/
H A Dclicommand.inc239 return $b . wordwrap($r, $p, "\n".$sp);
/PHP-8.3/ext/standard/
H A Dbasic_functions.stub.php2322 function wordwrap(string $string, int $width = 75, string $break = "\n", bool $cut_long_words = fal…
H A Dbasic_functions_arginfo.h2450 ZEND_FUNCTION(wordwrap);
3086 ZEND_SUPPORTS_COMPILE_TIME_EVAL_FE(wordwrap, arginfo_wordwrap)
H A Dstring.c676 PHP_FUNCTION(wordwrap) in PHP_FUNCTION() argument
/PHP-8.3/
H A DNEWS533 . Fix 32-bit wordwrap test failures. (orlitzky)

Completed in 58 milliseconds