1--TEST-- 2Test spliti() function : basic functionality - confirm case insensitivity 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]', '--- A ---')); 14var_dump(spliti('[A-Z]', '--- a ---')); 15var_dump(spliti('[[:lower:]]', '--- A ---')); 16var_dump(spliti('[[:upper:]]', '--- a ---')); 17 18echo "Done"; 19?> 20--EXPECTF-- 21Deprecated: Function spliti() is deprecated in %s on line %d 22array(2) { 23 [0]=> 24 string(4) "--- " 25 [1]=> 26 string(4) " ---" 27} 28 29Deprecated: Function spliti() is deprecated in %s on line %d 30array(2) { 31 [0]=> 32 string(4) "--- " 33 [1]=> 34 string(4) " ---" 35} 36 37Deprecated: Function spliti() is deprecated in %s on line %d 38array(2) { 39 [0]=> 40 string(4) "--- " 41 [1]=> 42 string(4) " ---" 43} 44 45Deprecated: Function spliti() is deprecated in %s on line %d 46array(2) { 47 [0]=> 48 string(4) "--- " 49 [1]=> 50 string(4) " ---" 51} 52Done 53