Home
last modified time | relevance | path

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

12345

/php-src/ext/standard/tests/strings/
H A Dtrim1.phpt2 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 Dtrim_error.phpt2 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 Dtrim.phpt2 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 Dtrim_basic.phpt2 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 Dnew_with_ctor_arguments_parentheses.phpt52 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 DSplFileObject_key_fgets_and_seek.phpt15 ['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 Dbug46053.phpt10 var_dump(trim($x->fgets()));
/php-src/ext/mbstring/libmbfl/mbfl/
H A Dgenerate_name_perfect_hash_table.php11 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 Dbug77931.phpt7 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 D006.phpt38 var_dump(trim($data));
45 var_dump(trim($data));
52 var_dump(trim($data));
59 var_dump(trim($data));
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 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.phpt41 var_dump(trim($data));
48 var_dump(trim($sxe->key()));
49 var_dump(trim($sxe->current()));
53 var_dump(trim($data));
H A Dsxe_002.phpt41 var_dump(trim($data));
47 var_dump(trim($sxe->elem1));
/php-src/sapi/phpdbg/
H A Dcreate-test.php100 $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 Dissue78621_closure.phpt12 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 Dissue78621.phpt12 function disp($message) { echo trim($message)."\n"; }
13 function dispRe($message) { echo "Re".trim($message)."\n"; }
/php-src/ext/soap/tests/bugs/
H A Dbug73182.phpt24 $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 Dproc_open_sockets2.inc7 echo strtoupper(trim(fgets(STDIN)));
/php-src/Zend/tests/
H A Doverloaded_func_002.phpt8 var_dump($a->{trim(" test")}());
/php-src/ext/ffi/tests/
H A D100.phpt29 var_dump(trim(explode("\n",$zend->get_zend_version())[0]));
30 //var_dump(trim(FFI::string($zend->get_zend_version())));
H A D101.phpt30 var_dump(trim(explode("\n",$f())[0]));
31 //var_dump(trim(FFI::string($zend->get_zend_version())));
/php-src/ext/opcache/tests/
H A Dphp_cli_server.inc10 $ini_array = preg_split('/\s+/', trim($ini));
12 return trim($arg, '\'"');
/php-src/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);
/php-src/ext/zip/examples/
H A Dodt.php14 if (!trim($reader->value)) {

Completed in 46 milliseconds

12345