note 38788 added to language.references.whatdo

From: Date: Wed, 07 Jan 2004 03:13:24 +0000
Subject: note 38788 added to language.references.whatdo
Groups: php.notes 
Request: Send a blank email to php-notes+get-63041@lists.php.net to get a copy of this message
I found this very helpful to know when I wanted to neaten up my code. <?PHP $graph = array( array("name" => "line1", "points" => array() ); ); $line1 =& $graph[0]["points"]; // can now use the shorter: $line1[] = // instead of the full: $graph[0]["points"][] = $line1[] = "0,0"; print_r ($graph); ?> will output as expected Array ( [0] => Array ( [name] => line1 [points] => Array ( [0] => 0,0 ) ) ) ---- Manual Page -- http://www.php.net/manual/en/language.references.whatdo.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38788 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38788&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38788&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#63041) next »