Home
last modified time | relevance | path

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

1234

/PHP-8.1/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 ***
H A Dbug22008.phpt18 echo trim(strip_tags($html, '<b>'))."\n";
/PHP-8.1/ext/oci8/tests/
H A Dcoll_018.phpt2 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 Dcoll_003.phpt20 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 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-8.1/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-8.1/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 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 D019.phpt38 var_dump(trim($data));
45 var_dump(trim($data));
52 var_dump(trim($data));
59 var_dump(trim($data));
H A Dsxe_002.phpt41 var_dump(trim($data));
47 var_dump(trim($sxe->elem1));
/PHP-8.1/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-8.1/ext/standard/tests/general_functions/
H A Dproc_open_sockets2.inc7 echo strtoupper(trim(fgets(STDIN)));
/PHP-8.1/Zend/tests/
H A Doverloaded_func_002.phpt8 var_dump($a->{trim(" test")}());
/PHP-8.1/ext/ffi/tests/
H A D100.phpt30 var_dump(trim(explode("\n",$zend->get_zend_version())[0]));
31 //var_dump(trim(FFI::string($zend->get_zend_version())));
H A D101.phpt31 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 Dphp_cli_server.inc10 $ini_array = preg_split('/\s+/', trim($ini));
12 return trim($arg, '\'"');
/PHP-8.1/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-8.1/ext/zip/examples/
H A Dodt.php14 if (!trim($reader->value)) {
/PHP-8.1/ext/dom/tests/
H A Ddom_test.inc34 if (strlen(trim($node->nodeValue))) {
54 print str_repeat(" ", $spaces) . trim($node->nodeValue) . "\n";
/PHP-8.1/ext/mbstring/tests/
H A Dbug79787.phpt2 Bug #79787 mb_strimwidth does not trim string

Completed in 28 milliseconds

1234