php-src/ext/mbstring/tests/mb_ereg_search_pos.phpt
2009-07-07 01:17:46 +00:00

32 lines
413 B
PHP

--TEST--
mb_ereg_search_pos() # a test for the basic function of mb_ereg_search_pos
--SKIPIF--
<?php
if (!extension_loaded('mbstring')) die('skip mbstring not enabled');
?>
--FILE--
<?php
$test_str = 'Iñtërnâtiônàlizætiøn';
if(mb_ereg_search_init($test_str))
{
$val=mb_ereg_search_pos("nâtiôn");
var_dump($val);
}
else{
var_dump("false");
}
?>
--EXPECT--
array(2) {
[0]=>
int(5)
[1]=>
int(6)
}