Home
last modified time | relevance | path

Searched refs:trim (Results 1 – 25 of 79) sorted by relevance

1234

/PHP-5.6/ext/standard/tests/strings/
H A Dtrim1.phpt2 Test trim() function
13 var_dump( trim($null_var) );
15 var_dump( trim($null_var) );
17 var_dump( trim($null_var) );
19 var_dump( trim($null_var) );
22 var_dump( trim("\ttesting trim", "") );
23 var_dump( trim(" \ttesting trim ", NULL) );
24 var_dump( trim("\ttesting trim ", true) );
30 var_dump( trim() );
68 string(13) " testing trim"
[all …]
H A Dtrim_error.phpt2 Test trim() function : error conditions
12 echo "*** Testing trim() : error conditions ***\n";
15 var_dump( trim() );
19 var_dump( trim("Hello World", "Heo", $extra_arg) );
24 var_dump(trim($hello, "..a"));
25 var_dump(trim($hello, "a.."));
26 var_dump(trim($hello, "z..a"));
27 var_dump(trim($hello, "a..b..c"));
32 *** Testing trim() : error conditions ***
34 -- Testing trim() function with no arguments --
[all …]
H A Dtrim.phpt2 trim(), rtrim() and ltrim() functions
7 'ABC' === trim('ABC')
10 'ABC' === trim(" \\0\\t\\nABC \\0\\t\\n")
13 " \\0\\t\\nABC \\0\\t\\n" === trim(" \\0\\t\\nABC \\0\\t\\n",'')
16 "ABC\\x50\\xC1" === trim("ABC\\x50\\xC1\\x60\\x90","\\x51..\\xC0")
17 "ABC\\x50" === trim("ABC\\x50\\xC1\\x60\\x90","\\x51..\\xC1")
18 "ABC" === trim("ABC\\x50\\xC1\\x60\\x90","\\x50..\\xC1")
19 "ABC\\x50\\xC1" === trim("ABC\\x50\\xC1\\x60\\x90","\\x51..\\xC0")
20 "ABC\\x50" === trim("ABC\\x50\\xC1\\x60\\x90","\\x51..\\xC1")
21 "ABC" === trim("ABC\\x50\\xC1\\x60\\x90","\\x50..\\xC1")
H A Dtrim_basic.phpt2 Test trim() function : basic functionality
6 /* Prototype : string trim ( string $str [, string $charlist ] )
11 echo "*** Testing trim() : basic functionality ***\n";
18 var_dump(trim($text));
21 var_dump(trim($hello, "=!"));
24 var_dump(trim($hello, "Hdle"));
27 var_dump(trim($binary, "\x00..\x1F"));
32 *** Testing trim() : basic functionality ***
H A Dtrim_variation1.phpt2 Test trim() function : usage variations - test values for $str argument
6 /* Prototype : string trim ( string $str [, string $charlist ] )
11 echo "*** Testing trim() function: with unexpected inputs for 'str' argument ***\n";
71 // loop through with each element of the $inputs array to test trim() function
76 var_dump( trim($input, " !-") );
85 *** Testing trim() function: with unexpected inputs for 'str' argument ***
106 Warning: trim() expects parameter 1 to be string, array given in %s on line %d
110 Warning: trim() expects parameter 1 to be string, array given in %s on line %d
114 Warning: trim() expects parameter 1 to be string, array given in %s on line %d
132 Warning: trim() expects parameter 1 to be string, resource given in %s on line %d
H A Dtrim_variation2.phpt2 Test trim() function : usage variations - test values for $charlist argument
6 /* Prototype : string trim ( string $str [, string $charlist ] )
11 echo "*** Testing trim() function: with unexpected inputs for 'charlist' argument ***\n";
71 // loop through with each element of the $inputs array to test trim() function
76 var_dump( trim("!---Hello World---!", $charlist) );
85 *** Testing trim() function: with unexpected inputs for 'charlist' argument ***
106 Warning: trim() expects parameter 2 to be string, array given in %s on line %d
110 Warning: trim() expects parameter 2 to be string, array given in %s on line %d
114 Warning: trim() expects parameter 2 to be string, array given in %s on line %d
132 Warning: trim() expects parameter 2 to be string, resource given in %s on line %d
/PHP-5.6/ext/oci8/tests/
H A Dcoll_018.phpt2 Collection trim tests
17 var_dump($coll1->trim());
20 var_dump($coll1->trim(0));
36 var_dump($coll1->trim(1));
41 var_dump($coll1->trim(2));
46 var_dump($coll1->trim(0));
50 var_dump($coll1->trim(1));
61 Warning: OCI-Collection::trim() expects exactly 1 parameter, 0 given in %s on line 9
H A Dcoll_003.phpt18 var_dump($coll1->trim(3));
32 Warning: OCI-Collection::trim(): OCI-22167: given trim size [3] must be less than or equal to [0] i…
H A Dcoll_007.phpt18 var_dump($coll1->trim(3));
32 Warning: OCI-Collection::trim(): OCI-22167: given trim size [3] must be less than or equal to [0] i…
/PHP-5.6/ext/simplexml/tests/
H A D005.phpt29 var_dump(trim($sxe->elem1->elem2));
30 var_dump(trim($sxe->elem1->elem2->elem3));
31 var_dump(trim($sxe->elem1->elem2->elem3->elem4));
H A D006.phpt38 var_dump(trim($data));
45 var_dump(trim($data));
52 var_dump(trim($data));
59 var_dump(trim($data));
H A D019.phpt38 var_dump(trim($data));
45 var_dump(trim($data));
52 var_dump(trim($data));
59 var_dump(trim($data));
H A Dsxe_003.phpt43 var_dump(trim($data));
50 var_dump(trim($sxe->key()));
51 var_dump(trim($sxe->current()));
55 var_dump(trim($data));
H A Dsxe_002.phpt43 var_dump(trim($data));
49 var_dump(trim($sxe->elem1));
/PHP-5.6/ext/json/
H A Djson.c725 char *trim = str; in php_json_decode_ex() local
730 while (trim_len && (*trim == ' ' || *trim == '\t' || *trim == '\n' || *trim == '\r')) { in php_json_decode_ex()
731 trim++; in php_json_decode_ex()
736 …while (trim_len && (trim[trim_len - 1] == ' ' || trim[trim_len - 1] == '\t' || trim[trim_len - 1] … in php_json_decode_ex()
742 if (!strncmp(trim, "null", trim_len)) { in php_json_decode_ex()
746 } else if (!strncmp(trim, "true", trim_len)) { in php_json_decode_ex()
749 } else if (trim_len == 5 && !strncmp(trim, "false", trim_len)) { in php_json_decode_ex()
753 if ((type = is_numeric_string_ex(trim, trim_len, &p, &d, 0, &overflow_info)) != 0) { in php_json_decode_ex()
766 for (i = (trim[0] == '-' ? 1 : 0); i < trim_len; i++) { in php_json_decode_ex()
769 if (trim[i] < '0' || trim[i] > '9') { in php_json_decode_ex()
[all …]
/PHP-5.6/ext/mysqli/tests/
H A Dmysqli_next_result.phpt42 … $tmp = trim(preg_replace('@Strict Standards: mysqli_next_result\(\).*on line \d+@ism', '', $tmp));
44 print trim($tmp) . "\n";
58 … $tmp = trim(preg_replace('@Strict Standards: mysqli_next_result\(\).*on line \d+@ism', '', $tmp));
60 print trim($tmp) . "\n";
87 … $tmp = trim(preg_replace('@Strict Standards: mysqli_next_result\(\).*on line \d+@ism', '', $tmp));
89 print trim($tmp) . "\n";
H A Dmysqli_more_results.phpt56 … $tmp = trim(preg_replace('@Strict Standards: mysqli_next_result\(\).*on line \d+@ism', '', $tmp));
58 print trim($tmp) . "\n";
88 … $tmp = trim(preg_replace('@Strict Standards: mysqli_next_result\(\).*on line \d+@ism', '', $tmp));
90 print trim($tmp) . "\n";
/PHP-5.6/
H A Drun-tests.php546 $test_files[] = trim($test);
1456 $e = explode('=', trim($e), 2);
1499 if (trim($section_text['SKIPIF'])) {
1703 $post = trim($section_text['PUT']);
1821 if (trim($section_text['CLEAN'])) {
1860 $output = trim($match[2]);
1867 $headers[trim($line[0])] = trim($line[1]);
1882 $want[trim($line[0])] = trim($line[1]);
1883 $wanted_headers[] = trim($line[0]) . ': ' . trim($line[1]);
2280 $name = trim($setting[0]);
[all …]
/PHP-5.6/sapi/phpdbg/tests/
H A Drun-tests.php363 $trim = trim($line);
365 switch (substr($trim, 0, 1)) {
366 case '#': if (($chunks = array_map('trim', preg_split('~:~', substr($trim, 1), 2)))) {
395 } else switch(substr($trim, 1, 1)) {
400 "~(\r\n)~", "\n", substr($trim, 1));
402 $line = trim($line);
478 $line = trim($line);
/PHP-5.6/ext/mcrypt/tests/
H A Dmcrypt_ecb.phpt14 // we have to trim as AES rounds the blocks and decrypt doesnt detect that
15 echo trim(mcrypt_ecb($cipher, $key, $enc_data, MCRYPT_DECRYPT, $iv)) . "\n";
H A Dmcrypt_ofb.phpt14 // we have to trim as AES rounds the blocks and decrypt doesnt detect that
15 echo trim(mcrypt_ofb($cipher, $key, $enc_data, MCRYPT_DECRYPT, $iv)) . "\n";
H A Dmcrypt_cbc.phpt14 // we have to trim as AES rounds the blocks and decrypt doesnt detect that
15 echo trim(mcrypt_cbc($cipher, $key, $enc_data, MCRYPT_DECRYPT, $iv)) . "\n";
H A Dmcrypt_cfb.phpt14 // we have to trim as AES rounds the blocks and decrypt doesnt detect that
15 echo trim(mcrypt_cfb($cipher, $key, $enc_data, MCRYPT_DECRYPT, $iv)) . "\n";
H A Dmcrypt_decrypt.phpt15 // we have to trim as AES rounds the blocks and decrypt doesnt detect that
16 echo trim(mcrypt_decrypt($cipher, $key, $enc_data, $mode, $iv)) . "\n";
/PHP-5.6/ext/com_dotnet/tests/
H A Dbug66431_1.phpt37 /* trim the returned text as we'll get windows eol from a word doc. */
38 $result = (trim($check_text) == $text);

Completed in 52 milliseconds

1234