I have a script where i need to pull two seperate and different RSS feeds, break them up, assign variables, and execute code thats different for each file.
What im wondering, and i dont know if this can even be done, but once i use a function and give it settings, can i then re-use that function with different settings even though some of its internal variables will have different values?
say the first time i run it, it looks like this
$xml = simplexml_load_string($raw_xml);
foreach($xml->channel as $channel)
then i run
$xml = simplexml_load_string($raw_xml2);
foreach($xml->item as $item)
Will i get errors or redundant data because i re-used the XML variable?