For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > September 2006 > cvs: phpdoc /en/reference/strings/functions explode.xml









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: phpdoc /en/reference/strings/functions explode.xml
Sean Coates

2006-09-20, 3:58 am

sean Wed Sep 20 03:37:27 2006 UTC

Modified files:
/phpdoc/en/reference/strings/functions explode.xml
Log:
change separator to delimiter to better match internal error messages

http://cvs.php.net/viewvc.cgi/phpdo...3&diff_format=u
Index: phpdoc/en/reference/strings/functions/explode.xml
diff -u phpdoc/en/reference/strings/functions/explode.xml:1.12 phpdoc/en/reference/strings/functions/explode.xml:1.13
--- phpdoc/en/reference/strings/functions/explode.xml:1.12 Tue Mar 14 03:32:02 2006
+++ phpdoc/en/reference/strings/functions/explode.xml Wed Sep 20 03:37:27 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.12 $ -->
+<!-- $Revision: 1.13 $ -->
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
<refentry id="function.explode">
<refnamediv>
@@ -10,23 +10,23 @@
<title>Description</title>
<methodsynopsis>
<type>array</type><methodname>explode</methodname>
- <methodparam><type>string</type><parameter>separator</parameter></methodparam>
+ <methodparam><type>string</type><parameter>delimiter</parameter></methodparam>
<methodparam><type>string</type><parameter>string</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>limit</parameter></methodparam>
</methodsynopsis>
<para>
Returns an array of strings, each of which is a substring of
<parameter>string</parameter> formed by splitting it on
- boundaries formed by the string <parameter>separator</parameter>.
+ boundaries formed by the string <parameter>delimiter</parameter>.
If <parameter>limit</parameter> is set, the returned array will
contain a maximum of <parameter>limit</parameter> elements with
the last element containing the rest of
<parameter>string</parameter>.
</para>
<para>
- If <parameter>separator</parameter> is an empty string (""),
+ If <parameter>delimiter</parameter> is an empty string (""),
<function>explode</function> will return &false;. If
- <parameter>separator</parameter> contains a value that is not contained
+ <parameter>delimiter</parameter> contains a value that is not contained
in <parameter>string</parameter>, then <function>explode</function> will
return an array containing <parameter>string</parameter>.
</para>
@@ -39,7 +39,7 @@
Although <function>implode</function> can, for historical reasons,
accept its parameters in either order,
<function>explode</function> cannot. You must ensure that the
- <parameter>separator</parameter> argument comes before the
+ <parameter>delimiter</parameter> argument comes before the
<parameter>string</parameter> argument.
</para>
<note>
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com