11111

spliti

Пред.

След.

spliti

(PHP 4 >= 4.0.1, PHP 5)spliti -- Split string into array by regular expression case insensitive

Description

array spliti ( string pattern, string string [, int limit] )


- This function is identical to split() except that this ignores case distinction when matching alphabetic characters.

- This example splits a string using 'a' as the separator :

Пример 1. spliti() example

<?php
$string
= "aBBBaCCCADDDaEEEaGGGA";
$chunks = spliti ("a", $string, 5);
print_r($chunks);
?>

Результат выполнения данного примера:
Array

( [0] => [1] => BBB [2] => CCC [3] => DDD [4] => EEEaGGGA

)

- See also preg_split(), split(), explode(), and implode().

Пред.

Начало

След.

split

Уровень выше

sql_regcase 22222

Free Web Hosting