/PHP-8.1/ext/standard/tests/strings/ |
H A D | trim1.phpt | 2 Test trim() function 5 /* trim with unset/null/boolean variable - returns an empty string */ 8 var_dump( trim($null_var) ); 10 var_dump( trim($null_var) ); 12 var_dump( trim($null_var) ); 15 var_dump( trim("\ttesting trim", "") ); 16 var_dump( trim("\ttesting trim ", true) ); 27 var_dump( trim($obj, "Ot") ); 40 var_dump( trim($str, "us\ning") ); 48 string(13) " testing trim" [all …]
|
H A D | trim_error.phpt | 2 Test trim() function : error conditions 6 echo "*** Testing trim() : error conditions ***\n"; 9 echo "\n-- Test trim function with various invalid charlists --\n"; 10 var_dump(trim($hello, "..a")); 11 var_dump(trim($hello, "a..")); 12 var_dump(trim($hello, "z..a")); 13 var_dump(trim($hello, "a..b..c")); 17 *** Testing trim() : error conditions *** 19 -- Test trim function with various invalid charlists -- 21 Warning: trim(): Invalid '..'-range, no character to the left of '..' in %s on line %d [all …]
|
H A D | trim.phpt | 2 trim(), rtrim() and ltrim() functions 6 var_dump('ABC' === trim('ABC')); 9 var_dump('ABC' === trim(" \0\t\nABC \0\t\n")); 12 var_dump(" \0\t\nABC \0\t\n" === trim(" \0\t\nABC \0\t\n",'')); 15 var_dump("ABC\x50\xC1" === trim("ABC\x50\xC1\x60\x90","\x51..\xC0")); 16 var_dump("ABC\x50" === trim("ABC\x50\xC1\x60\x90","\x51..\xC1")); 17 var_dump("ABC" === trim("ABC\x50\xC1\x60\x90","\x50..\xC1")); 18 var_dump("ABC\x50\xC1" === trim("ABC\x50\xC1\x60\x90","\x51..\xC0")); 19 var_dump("ABC\x50" === trim("ABC\x50\xC1\x60\x90","\x51..\xC1")); 20 var_dump("ABC" === trim("ABC\x50\xC1\x60\x90","\x50..\xC1"));
|
H A D | trim_basic.phpt | 2 Test trim() function : basic functionality 6 echo "*** Testing trim() : basic functionality ***\n"; 13 var_dump(trim($text)); 16 var_dump(trim($hello, "=!")); 19 var_dump(trim($hello, "Hdle")); 22 var_dump(trim($binary, "\x00..\x1F")); 26 *** Testing trim() : basic functionality ***
|
H A D | bug22008.phpt | 18 echo trim(strip_tags($html, '<b>'))."\n";
|
/PHP-8.1/ext/oci8/tests/ |
H A D | coll_018.phpt | 2 Collection trim tests 19 var_dump($coll1->trim(0)); 35 var_dump($coll1->trim(1)); 40 var_dump($coll1->trim(2)); 45 var_dump($coll1->trim(0)); 49 var_dump($coll1->trim(1));
|
H A D | coll_003.phpt | 20 var_dump($coll1->trim(3)); 34 Warning: OCICollection::trim(): OCI-22167: given trim size [3] must be less than or equal to [0] in…
|
/PHP-8.1/ext/spl/tests/ |
H A D | SplFileObject_key_fgets_and_seek.phpt | 15 ['line' => $file->key(), 'contents' => trim($file->fgets())], 16 ['line' => $file->key(), 'contents' => trim($file->fgets())], 17 ['line' => $file->key(), 'contents' => trim($file->fgets())],
|
H A D | bug46053.phpt | 10 var_dump(trim($x->fgets()));
|
/PHP-8.1/ext/standard/tests/array/ |
H A D | bug77931.phpt | 7 array_map('trim', array(), 1); 12 array_map('trim', array(), array(), true); 17 array_map('trim', array(), array(), array(), null);
|
/PHP-8.1/ext/simplexml/tests/ |
H A D | 006.phpt | 38 var_dump(trim($data)); 45 var_dump(trim($data)); 52 var_dump(trim($data)); 59 var_dump(trim($data));
|
H A D | 005.phpt | 29 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 D | sxe_003.phpt | 41 var_dump(trim($data)); 48 var_dump(trim($sxe->key())); 49 var_dump(trim($sxe->current())); 53 var_dump(trim($data));
|
H A D | 019.phpt | 38 var_dump(trim($data)); 45 var_dump(trim($data)); 52 var_dump(trim($data)); 59 var_dump(trim($data));
|
H A D | sxe_002.phpt | 41 var_dump(trim($data)); 47 var_dump(trim($sxe->elem1));
|
/PHP-8.1/sapi/phpdbg/ |
H A D | create-test.php | 100 $desc = trim(fgets(STDIN)); 104 $testfile = trim(fgets(STDIN)); 107 $y = trim(fgets(STDIN)); 116 $input = trim($input);
|
/PHP-8.1/ext/standard/tests/general_functions/ |
H A D | proc_open_sockets2.inc | 7 echo strtoupper(trim(fgets(STDIN)));
|
/PHP-8.1/Zend/tests/ |
H A D | overloaded_func_002.phpt | 8 var_dump($a->{trim(" test")}());
|
/PHP-8.1/ext/ffi/tests/ |
H A D | 100.phpt | 30 var_dump(trim(explode("\n",$zend->get_zend_version())[0])); 31 //var_dump(trim(FFI::string($zend->get_zend_version())));
|
H A D | 101.phpt | 31 var_dump(trim(explode("\n",$f())[0])); 32 //var_dump(trim(FFI::string($zend->get_zend_version())));
|
/PHP-8.1/ext/opcache/tests/ |
H A D | php_cli_server.inc | 10 $ini_array = preg_split('/\s+/', trim($ini)); 12 return trim($arg, '\'"');
|
/PHP-8.1/ext/com_dotnet/tests/ |
H A D | bug66431_1.phpt | 37 /* trim the returned text as we'll get windows eol from a word doc. */ 38 $result = (trim($check_text) == $text);
|
/PHP-8.1/ext/zip/examples/ |
H A D | odt.php | 14 if (!trim($reader->value)) {
|
/PHP-8.1/ext/dom/tests/ |
H A D | dom_test.inc | 34 if (strlen(trim($node->nodeValue))) { 54 print str_repeat(" ", $spaces) . trim($node->nodeValue) . "\n";
|
/PHP-8.1/ext/mbstring/tests/ |
H A D | bug79787.phpt | 2 Bug #79787 mb_strimwidth does not trim string
|