1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 08:58:28 +02:00
Files
archived-php-src/ext/standard/tests/strings/strcspn.phpt
T
Dmitry Stogov f79fed6286 Unicode support
2005-08-16 10:18:43 +00:00

25 lines
389 B
PHP

--TEST--
Test strcspn() behavior
--FILE--
<?php
$a = "22222222aaaa bbb1111 cccc";
$b = "1234";
var_dump($a);
var_dump($b);
var_dump(strcspn($a,$b));
var_dump(strcspn($a,$b,9));
var_dump(strcspn($a,$b,9,6));
?>
--EXPECT--
string(25) "22222222aaaa bbb1111 cccc"
string(4) "1234"
int(0)
int(7)
int(6)
--UEXPECT--
unicode(25) "22222222aaaa bbb1111 cccc"
unicode(4) "1234"
int(0)
int(7)
int(6)