[PHP] Re: multidimensional array sort

2005-03-14 Thread Nadim Attari
Try http://terra.di.fct.unl.pt/docs/php/function.array-multisort.php.htm function array_csort() {//coded by Ichier2003 $args = func_get_args(); $marray = array_shift($args); $msortline = "return(array_multisort("; foreach ($args as $arg) { $i++; if (is_string($arg)) foreach ($ma

[PHP] Re: Multidimensional Array advice from a newbie

2004-06-14 Thread Justin Patrin
Is this what you need? (See below for inline suggestions). [EMAIL PROTECTED] wrote: Hi :) I am creating an XML file out of a mysql query with nested arrays. Currently I can get 1 element and 1 child with a properly formatted XML file with the below script . My question is: How do I add 3 to 4 m

[PHP] Re: Multidimensional array

2002-11-30 Thread Paul Chvostek
A multidimensional array is just an array whose values are themselves arrays. So ... $thing="2002-11"; // or whatever $issue=array(); $issue[$thing]=array(); $issue[$thing]['number']="this"; $issue[$thing]['headline']="that"; And if you ksort($issue), the key/value associations will be maintain

[PHP] Re: multidimensional array from html forms

2001-10-05 Thread Larry Linthicum
I know that enclosing form field names in [] makes them available as an array if the form were dynamically built like PERSONS NAME (from database via $member_id ) next PERSONS NAME (from database via $member_id ) next PERSONS NAME (from database via $member_id ) etc etc I "think" I w