sean            Sat Aug 13 15:06:21 2005 EDT

  Modified files:              
    /phpdoc/en/reference/array/functions        array-push.xml 
  Log:
  explain behaviour when first argument is not an array (#34134)
  
http://cvs.php.net/diff.php/phpdoc/en/reference/array/functions/array-push.xml?r1=1.11&r2=1.12&ty=u
Index: phpdoc/en/reference/array/functions/array-push.xml
diff -u phpdoc/en/reference/array/functions/array-push.xml:1.11 
phpdoc/en/reference/array/functions/array-push.xml:1.12
--- phpdoc/en/reference/array/functions/array-push.xml:1.11     Wed Nov 10 
03:30:19 2004
+++ phpdoc/en/reference/array/functions/array-push.xml  Sat Aug 13 15:06:21 2005
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.11 $ -->
+<!-- $Revision: 1.12 $ -->
 <!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
   <refentry id="function.array-push">
    <refnamediv>
@@ -70,6 +70,13 @@
       way there is no overhead of calling a function.
      </simpara>
     </note>
+    <note>
+     <simpara>
+      <function>array_push</function> will raise a warning if the first
+      argument is not an array. This differs from the
+      <literal>$var[]</literal> behaviour where a new array is created.
+     </simpara>
+    </note>
     <para>
      See also <function>array_pop</function>,
      <function>array_shift</function>, and

Reply via email to