PHP » Strings » spliti()

Syntax:
array spliti(string separator, string s [, int n])
pattern
The separator pattern.
s
The string to be converted to an array.
n
Maximum number of returned elements.

This function has been deprecated as of PHP 5.3.0.

Makes an array of a string. This function is case insensitive.

This function works just like split() but is case insensitive.

Examples

Code:
<pre>
<?php

$s = "this AND that";

print "split(): ";
print_r(split("and", $s));

print "<br>spliti(): ";
print_r(spliti("and", $s));

?>
</pre>
Output:
split(): Array
(
   [0] => this AND that
)
spliti(): Array
(
   [0] => this
   [1] =>  that
)

Explanation:

spliti() is case insensitive, unlike split().

See Also: