Home
last modified time | relevance | path

Searched refs:nl2br (Results 1 – 11 of 11) sorted by relevance

/PHP-7.2/ext/standard/tests/strings/
H A Dnl2br_error.phpt2 Test nl2br() function : error conditions
5 /* Prototype : string nl2br(string $str)
10 echo "*** Testing nl2br() : error conditions ***\n";
13 echo "\n-- Testing nl2br() function with Zero arguments --";
14 var_dump( nl2br() );
16 //Test nl2br with one more than the expected number of arguments
20 var_dump( nl2br($str, true, $extra_arg) );
25 *** Testing nl2br() : error conditions ***
27 -- Testing nl2br() function with Zero arguments --
28 Warning: nl2br() expects at least 1 parameter, 0 given in %s on line %d
[all …]
H A Dnl2br.phpt2 nl2br() function
5 var_dump(nl2br("test"));
6 var_dump(nl2br(""));
7 var_dump(nl2br(NULL));
8 var_dump(nl2br("\r\n"));
9 var_dump(nl2br("\n"));
10 var_dump(nl2br("\r"));
11 var_dump(nl2br("\n\r"));
13 var_dump(nl2br("\n\r\r\n\r\r\r\r"));
14 var_dump(nl2br("\n\r\n\n\r\n\r\r\n\r\n"));
[all …]
H A Dnl2br_variation5.phpt2 Test nl2br() function : usage variations - unexpected values for 'str' argument
5 /* Prototype : string nl2br(string $str)
11 * Test nl2br() function by passing different types of values other than
15 echo "*** Testing nl2br() : usage variations ***\n";
77 // loop through $values array to test nl2br() function with each element
81 var_dump( nl2br($value) );
91 *** Testing nl2br() : usage variations ***
112 Warning: nl2br() expects parameter 1 to be string, array given in %s on line %d
116 Warning: nl2br() expects parameter 1 to be string, array given in %s on line %d
120 Warning: nl2br() expects parameter 1 to be string, array given in %s on line %d
[all …]
H A Dnl2br_variation4.phpt2 Test nl2br() function : usage variations - html values for 'str' argument
5 /* Prototype : string nl2br(string $str)
11 * Test nl2br() function by passing html string inputs containing line breaks and
15 echo "*** Testing nl2br() : usage variations ***\n";
25 //loop through $strings array to test nl2br() function with each element
27 var_dump(nl2br($str) );
32 *** Testing nl2br() : usage variations ***
H A Dnl2br_variation2.phpt2 Test nl2br() function : usage variations - single quoted strings for 'str' argument
5 /* Prototype : string nl2br(string $str);
10 /* Test nl2br() function by passing single quoted strings containing various
14 echo "*** Testing nl2br() : usage variations ***\n";
37 //loop through $strings array to test nl2br() function with each element
41 var_dump(nl2br($str) );
47 *** Testing nl2br() : usage variations ***
H A Dnl2br_variation1.phpt2 Test nl2br() function : usage variations - double quoted strings for 'str' argument
5 /* Prototype : string nl2br(string $str);
10 /* Test nl2br() function by passing double quoted strings containing various
14 echo "*** Testing nl2br() : usage variations ***\n";
39 //loop through $strings array to test nl2br() function with each element
43 var_dump(nl2br($str) );
49 *** Testing nl2br() : usage variations ***
H A Dnl2br_variation3.phpt2 Test nl2br() function : usage variations - heredoc strings for 'str' argument
5 /* Prototype : string nl2br(string $str);
10 /* Test nl2br() function by passing heredoc strings containing various
14 echo "*** Testing nl2br() : usage variations ***\n";
32 var_dump(nl2br($heredoc_str1) );
33 var_dump(nl2br($heredoc_str2) );
38 *** Testing nl2br() : usage variations ***
/PHP-7.2/ext/standard/
H A Dphp_string.h72 PHP_FUNCTION(nl2br);
H A Dbasic_functions.c2771 PHP_FE(nl2br, arginfo_nl2br)
H A Dstring.c4359 PHP_FUNCTION(nl2br) argument
/PHP-7.2/ext/exif/
H A Dtest.txt141 $Value = nl2br($Value);

Completed in 45 milliseconds