xref: /PHP-5.4/ext/standard/tests/strings/strspn.phpt (revision 0679a913)
1--TEST--
2Test strspn() behavior
3--FILE--
4<?php
5$a = "22222222aaaa bbb1111 cccc";
6$b = "1234";
7var_dump($a);
8var_dump($b);
9var_dump(strspn($a,$b));
10var_dump(strspn($a,$b,2));
11var_dump(strspn($a,$b,2,3));
12?>
13--EXPECT--
14string(25) "22222222aaaa bbb1111 cccc"
15string(4) "1234"
16int(8)
17int(6)
18int(3)
19