1--TEST--
2Test spliti() function : basic functionality - a few non-matches
3--FILE--
4<?php
5/* Prototype  : proto array spliti(string pattern, string string [, int limit])
6 * Description: spliti string into array by regular expression
7 * Source code: ext/standard/reg.c
8 * Alias to functions:
9 */
10
11$replacement = 'r';
12
13var_dump(spliti('[A-Z]', '-- 0 --'));
14var_dump(spliti('(a){4}', '--- aaa ---'));
15var_dump(spliti('^a', '--- ba ---'));
16var_dump(spliti('b$', '--- ba ---'));
17var_dump(spliti('[:alpha:]', '--- x ---'));
18
19
20echo "Done";
21?>
22--EXPECTF--
23Deprecated: Function spliti() is deprecated in %s on line %d
24array(1) {
25  [0]=>
26  string(7) "-- 0 --"
27}
28
29Deprecated: Function spliti() is deprecated in %s on line %d
30array(1) {
31  [0]=>
32  string(11) "--- aaa ---"
33}
34
35Deprecated: Function spliti() is deprecated in %s on line %d
36array(1) {
37  [0]=>
38  string(10) "--- ba ---"
39}
40
41Deprecated: Function spliti() is deprecated in %s on line %d
42array(1) {
43  [0]=>
44  string(10) "--- ba ---"
45}
46
47Deprecated: Function spliti() is deprecated in %s on line %d
48array(1) {
49  [0]=>
50  string(9) "--- x ---"
51}
52Done
53