/php-src/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 ***
|
/php-src/Zend/tests/new_without_parentheses/ |
H A D | new_with_ctor_arguments_parentheses.phpt | 52 echo new (trim(' A '))()::C; 53 echo new (trim(' A '))()::{'C'}; 57 echo new (trim(' A '))()->property; 61 echo new (trim(' A '))()::$staticProperty; 65 new (trim(' A '))()(); 69 new (trim(' A '))()->method(); 73 new (trim(' A '))()::staticMethod(); 77 new (trim(' A '))()['key']; 81 isset(new (trim(' A '))()['key']);
|
/php-src/ext/spl/tests/SplFileObject/ |
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-src/ext/mbstring/libmbfl/mbfl/ |
H A D | generate_name_perfect_hash_table.php | 11 return trim($item, "&\n\t "); 27 $result[$current_struct_name] = trim($name, " \n\t\""); 95 $asso_values = trim($matches[1], "\t \n{"); 103 $word_list = trim($matches[1], "\t \n{");
|
/php-src/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-src/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 | 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_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 | sxe_002.phpt | 41 var_dump(trim($data)); 47 var_dump(trim($sxe->elem1));
|
/php-src/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-src/ext/pdo_pgsql/tests/ |
H A D | issue78621_closure.phpt | 12 function disp($message) { echo trim($message)."\n"; } 19 … $db->setNoticeCallback(function($message) use($prefix) { echo $prefix.trim($message)."\n"; }); 24 …$closure = function($message) use($prefix) { echo $prefix.'('.get_class($this).')'.trim($message).…
|
H A D | issue78621.phpt | 12 function disp($message) { echo trim($message)."\n"; } 13 function dispRe($message) { echo "Re".trim($message)."\n"; }
|
/php-src/ext/soap/tests/bugs/ |
H A D | bug73182.phpt | 24 $content = trim(file_get_contents("php://input")) . PHP_EOL; 42 ' X-custom2: trim me ', 62 X-custom2: trim me
|
/php-src/ext/standard/tests/general_functions/ |
H A D | proc_open_sockets2.inc | 7 echo strtoupper(trim(fgets(STDIN)));
|
/php-src/Zend/tests/ |
H A D | overloaded_func_002.phpt | 8 var_dump($a->{trim(" test")}());
|
/php-src/ext/ffi/tests/ |
H A D | 100.phpt | 29 var_dump(trim(explode("\n",$zend->get_zend_version())[0])); 30 //var_dump(trim(FFI::string($zend->get_zend_version())));
|
H A D | 101.phpt | 30 var_dump(trim(explode("\n",$f())[0])); 31 //var_dump(trim(FFI::string($zend->get_zend_version())));
|
/php-src/ext/opcache/tests/ |
H A D | php_cli_server.inc | 10 $ini_array = preg_split('/\s+/', trim($ini)); 12 return trim($arg, '\'"');
|
/php-src/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-src/ext/zip/examples/ |
H A D | odt.php | 14 if (!trim($reader->value)) {
|