Jump to content

[SOLVED] build an array_combine


phpretard

Recommended Posts

Is there any way you could translate that?

 

$url=unserialize($row['url']);
$name=unserialize($row['name']);

$link=$url;
$link_name=$name;

$narray=array_combine($link,$link_name);
foreach($narray as $key => $item) echo "<a href=\"$key\">$item</a>";

 

Thank you for your quick response!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.