I'm really
For example:
birds,http://www.birdwatching.com/;
snakes,http://www.whales.com/;
horses,http://www.horse.com/;
What I have done next is split each word with its associated url after each newline and then placed all the words into 1 array and all the urls into another array, using the following code:
Code: Select all
preg_match_all('/(.*),(.*);/',$wordsurls, $phrase);
$wds = $phrase[1];
$rurls = $phrase[2];
foreach($wds as $wd) {
$words_array[] = $wd;
}
foreach($rurls as $rurl) {
$urls_array[] = $rurl;
}
Thank you in advance.
M