1--TEST--
2Test strpbrk() function : basic functionality
3--FILE--
4<?php
5echo "*** Testing strpbrk() : basic functionality ***\n";
6
7// Initialise all required variables
8$text = 'This is a Simple text.';
9var_dump( strpbrk($text, 'mi') );
10var_dump( strpbrk($text, 'ZS') );
11var_dump( strpbrk($text, 'Z') );
12var_dump( strpbrk($text, 'H') );
13
14$text = '';
15var_dump( strpbrk($text, 'foo') );
16
17$text = "  aaa aaaSLR";
18var_dump( strpbrk($text, '     ') );
19
20var_dump( strpbrk(5, 5) );
21var_dump( strpbrk(5, "5") );
22
23?>
24--EXPECT--
25*** Testing strpbrk() : basic functionality ***
26string(20) "is is a Simple text."
27string(12) "Simple text."
28bool(false)
29bool(false)
30bool(false)
31string(12) "  aaa aaaSLR"
32string(1) "5"
33string(1) "5"
34