note 99015 added to language.types.array

From: Date: Thu, 22 Jul 2010 11:20:11 +0000
Subject: note 99015 added to language.types.array
Groups: php.notes 
Request: Send a blank email to php-notes+get-171038@lists.php.net to get a copy of this message
Like in Perl, you can use curly braces ({}) instead of square brackets ([]) to access array members: <?php $a = array (); $a[7] = 'seven'; $a{'hello'} = 'world'; print $a{7} . ' ' . $a['hello']; ?> Prints 'seven world'. ---- Server IP: 69.147.83.197 Probable Submitter: 83.69.222.102 ---- Manual Page -- http://www.php.net/manual/en/language.types.array.php Edit -- https://master.php.net/note/edit/99015 Del: integrated -- https://master.php.net/note/delete/99015/integrated Del: useless -- https://master.php.net/note/delete/99015/useless Del: bad code -- https://master.php.net/note/delete/99015/bad+code Del: spam -- https://master.php.net/note/delete/99015/spam Del: non-english -- https://master.php.net/note/delete/99015/non-english Del: in docs -- https://master.php.net/note/delete/99015/in+docs Del: other reasons-- https://master.php.net/note/delete/99015 Reject -- https://master.php.net/note/reject/99015 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#171038) next »