note 101066 added to language.types.array

From: Date: Wed, 24 Nov 2010 08:53:11 +0000
Subject: note 101066 added to language.types.array
Groups: php.notes 
Request: Send a blank email to php-notes+get-174310@lists.php.net to get a copy of this message
PLEASE CHECK THE BELOW POST FOR A MULTIDIMENSIONAL ARRAY I DID, THIS ONE JUST RETURNS THE $ROW ARRAY KEY/VALUE PAIR WITH A RESTRICTION ON THE AMOUNT OF OUTPUT AND RETURNS OUTPUT IN A DIV. while ($row = mysql_fetch_assoc($result)) { /*removes username*/ unset($row['loginName']); /*sort array*/ arsort($row); $c=0; foreach($row as $k => $v) { $c=$c+1; echo "<div id='result' style='border:solid thin;'>$k $v</div>"; if($c == "5") { break; } } } ---- Server IP: 69.147.83.197 Probable Submitter: 81.98.228.172 ---- Manual Page -- http://www.php.net/manual/en/language.types.array.php Edit -- https://master.php.net/note/edit/101066 Del: integrated -- https://master.php.net/note/delete/101066/integrated Del: useless -- https://master.php.net/note/delete/101066/useless Del: bad code -- https://master.php.net/note/delete/101066/bad+code Del: spam -- https://master.php.net/note/delete/101066/spam Del: non-english -- https://master.php.net/note/delete/101066/non-english Del: in docs -- https://master.php.net/note/delete/101066/in+docs Del: other reasons-- https://master.php.net/note/delete/101066 Reject -- https://master.php.net/note/reject/101066 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#174310) next »