svn: /phpdoc/en/trunk/reference/spl/arrayobject/ setflags.xml
| From: | Jakub Vrana | Date: | Fri, 26 Mar 2010 13:34:33 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/spl/arrayobject/ setflags.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-6273@lists.php.net to get a copy of this message | ||
vrana Fri, 26 Mar 2010 13:34:33 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=296851
Log:
Example uses var_dump
Changed paths:
U phpdoc/en/trunk/reference/spl/arrayobject/setflags.xml
Modified: phpdoc/en/trunk/reference/spl/arrayobject/setflags.xml
===================================================================
--- phpdoc/en/trunk/reference/spl/arrayobject/setflags.xml 2010-03-26 13:07:13 UTC (rev 296850)
+++ phpdoc/en/trunk/reference/spl/arrayobject/setflags.xml 2010-03-26 13:34:33 UTC (rev 296851)
@@ -86,12 +86,11 @@
$fruitsArrayObject = new ArrayObject($fruits);
// Try to use array key as property
-print_r($fruitsArrayObject->lemons);
+var_dump($fruitsArrayObject->lemons);
// Set the flag so that the array keys can be used as properties of the ArrayObject
$fruitsArrayObject->setFlags(ArrayObject::ARRAY_AS_PROPS);
// Try it again
-print_r($fruitsArrayObject->lemons);
-
+var_dump($fruitsArrayObject->lemons);
?>
]]>
</programlisting>