note 81562 added to ref.array

From: Date: Tue, 04 Mar 2008 09:45:49 +0000
Subject: note 81562 added to ref.array
Groups: php.notes 
Request: Send a blank email to php-notes+get-136722@lists.php.net to get a copy of this message
More intuitive tuple support would be nice :) But for those scratching their heads, like I did, to extract a tuple from an array of tuples, do something like: $tuple = array_pop($tuple_array); $key = key($tuple); $val = $tuple[$key]; ---- Server IP: 82.80.248.162 Probable Submitter: 79.179.131.71 ---- Manual Page -- http://www.php.net/manual/en/ref.array.php Edit -- https://master.php.net/note/edit/81562 Del: integrated -- https://master.php.net/note/delete/81562/integrated Del: useless -- https://master.php.net/note/delete/81562/useless Del: bad code -- https://master.php.net/note/delete/81562/bad+code Del: spam -- https://master.php.net/note/delete/81562/spam Del: non-english -- https://master.php.net/note/delete/81562/non-english Del: in docs -- https://master.php.net/note/delete/81562/in+docs Del: other reasons-- https://master.php.net/note/delete/81562 Reject -- https://master.php.net/note/reject/81562 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#136722) next »