Annotation of embedaddon/php/ext/mbstring/tests/mb_ereg_search_pos.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: mb_ereg_search_pos() # a test for the basic function of mb_ereg_search_pos
3: --SKIPIF--
4: <?php
5: if (!extension_loaded('mbstring')) die('skip mbstring not enabled');
6: ?>
7: --FILE--
8: <?php
9:
10: $test_str = 'Iñtërnâtiônàlizætiøn';
11:
12: if(mb_ereg_search_init($test_str))
13: {
14: $val=mb_ereg_search_pos("nâtiôn");
15:
16: var_dump($val);
17:
18: }
19: else{
20: var_dump("false");
21: }
22: ?>
23: --EXPECT--
24: array(2) {
25: [0]=>
26: int(5)
27: [1]=>
28: int(6)
29: }
30:
31:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>