Re: array issues

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

 



If i'm understanding you correctly, you have something like a flat file, and hopefully it is artist[tab]artist[tab] with the title being something like artist1title[tab]artist2title[tab], etc.

If so, use explode.

$artists = explode("\t", $stringofartists);
$songs = explode("\t", $stringoftitles);
$i = 0;

foreach($artists as $key)
{
  
    $information[$key] = $songs[$i];
    $i++;
}


I hope this is kind of what you were looking for.

[snip]
Artist[tab]artist[tab]artist[tab] etc as a entry for "artists" 

[/snip]




-- 
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