array problem
| From: | Ahmed Abdel-Aliem | Date: | Fri, 21 Jan 2005 16:49:00 +0000 |
| Subject: | array problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-206953@lists.php.net to get a copy of this message | ||
hi
if i have an array
$listing1 = array(array('title'=>'yahoo',
'redirect'=>'www.yahoo.com',
'info'=>'yahoo website'), array(title=>'msn',
'redirect'=>'www.msn.com', 'info=>'msn website'));
$listing2 = array(array('name'=>'lycos',
'link'=>'www.lycos.com',
'description'=>'lycos website'), array(name=>'me2resh',
'link'=>'www.me2resh.com', 'description'=>'me2resh
website'));
how can i group them together into one array to be :
$listing3 = array(array('header'=>'lycos',
'url'=>'www.lycos.com',
'information'=>'lycos website'), array(header=>'me2resh',
'url'=>'www.me2resh.com', 'information'=>'me2resh
website'),
array('header'=>'lycos', 'url'=>'www.lycos.com',
'information'=>'lycos
website'), array(header=>'me2resh',
'url'=>'www.me2resh.com',
'information'=>'me2resh website'));
and then how can i sort them by the value of information for example
can anyone help me please with this ?
Ahmed Abdel-Aliem
Web Developer
www.ApexScript.com
0101108551