array problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux