php-src/ext/mbstring/tests/mb_ereg_search_pos.phpt
2012-01-14 09:07:10 +00:00

32 lines
445 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
mb_regex_encoding('iso-8859-1');
$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)
}