TypePHP 编译器 https://swoole.com/aot/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

33 lines
714 B

--TEST--
Test strpbrk() function : basic functionality
--FILE--
<?php
echo "*** Testing strpbrk() : basic functionality ***\n";
// Initialise all required variables
$text = 'This is a Simple text.';
var_dump( strpbrk($text, 'mi') );
var_dump( strpbrk($text, 'ZS') );
var_dump( strpbrk($text, 'Z') );
var_dump( strpbrk($text, 'H') );
$text = '';
var_dump( strpbrk($text, 'foo') );
$text = " aaa aaaSLR";
var_dump( strpbrk($text, ' ') );
var_dump( strpbrk(5, 5) );
var_dump( strpbrk(5, "5") );
?>
--EXPECT--
*** Testing strpbrk() : basic functionality ***
string(20) "is is a Simple text."
string(12) "Simple text."
bool(false)
bool(false)
bool(false)
string(12) " aaa aaaSLR"
string(1) "5"
string(1) "5"