I have some code...
case "travel": $MYFEED = "http://www.prweb.com/rss2/travel.xml"; break;
But the variable that is passed can contain either the word Travel or travel.
How can I get it into lower case?
isnt there a string function strtolower( $strung ); ??
STRING Functions Scroll down to see list of all: http://php.net/manual/en/ref.strings.php
$lowstring = strtolower( $somestr ); switch ( $lowstring ) { case "travel" :
Yes, strtolower did it thanks!