cvs: phpdoc /en/reference/regex/functions spliti.xml

From: Date: Mon, 27 Sep 2004 12:21:09 +0000
Subject: cvs: phpdoc /en/reference/regex/functions spliti.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969364292@lists.php.net to get a copy of this message
dams Mon Sep 27 08:21:09 2004 EDT Modified files: /phpdoc/en/reference/regex/functions spliti.xml Log: adding example http://cvs.php.net/diff.php/phpdoc/en/reference/regex/functions/spliti.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc/en/reference/regex/functions/spliti.xml diff -u phpdoc/en/reference/regex/functions/spliti.xml:1.4 phpdoc/en/reference/regex/functions/spliti.xml:1.5 --- phpdoc/en/reference/regex/functions/spliti.xml:1.4 Wed Aug 11 21:17:36 2004 +++ phpdoc/en/reference/regex/functions/spliti.xml Mon Sep 27 08:21:09 2004 @@ -1,32 +1,60 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./en/functions/regex.xml, last change in rev 1.2 --> - <refentry id="function.spliti"> - <refnamediv> - <refname>spliti</refname> - <refpurpose> - Split string into array by regular expression case insensitive - </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>array</type><methodname>spliti</methodname> - <methodparam><type>string</type><parameter>pattern</parameter></methodparam> - <methodparam><type>string</type><parameter>string</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>limit</parameter></methodparam> - </methodsynopsis> - <para> - This function is identical to <function>split</function> except - that this ignores case distinction when matching alphabetic - characters. - </para> - <para> - See also <function>preg_split</function>, <function>split</function>, - <function>explode</function>, and <function>implode</function>. - </para> - </refsect1> - </refentry> +<refentry id="function.spliti"> + <refnamediv> + <refname>spliti</refname> + <refpurpose> + Split string into array by regular expression case insensitive + </refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <methodsynopsis> + <type>array</type><methodname>spliti</methodname> + <methodparam><type>string</type><parameter>pattern</parameter></methodparam> + <methodparam><type>string</type><parameter>string</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>limit</parameter></methodparam> + </methodsynopsis> + <para> + This function is identical to <function>split</function> except + that this ignores case distinction when matching alphabetic + characters. + </para> + <para> + This example split a string using 'a' as separator : + <example> + <title><function>spliti</function> example</title> + <programlisting role="php"> +<![CDATA[ +<?php +$string = "aBBBaCCCADDDaEEEaGGGA"; +$chunks = spliti ("a", $string, 5); +print_r($chunks); +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +Array +( + [0] => + [1] => BBB + [2] => CCC + [3] => DDD + [4] => EEEaGGGA +) +]]> + </screen> + </example> + </para> + <para> + See also <function>preg_split</function>, <function>split</function>, + <function>explode</function>, and <function>implode</function>. + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml

« previous php.doc (#969364292) next »