The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
if ive got a two strings
"friday - its the weekend"
"monday - back to work"
is there a PHP function or can i use a combination of functions to return just "friday" and "monday"
i can do it in VB, java and SQL but my PHP isnt up to scratch.
cheers guys
$strDay = substr(trim($strFull), 0, strpos(trim($strFull), "-") -1);
echo strDay; //returns "Friday"
$Message = "friday - its the weekend";
if ( strstr($Message, "friday"))
print "$Message";
else
print "friday not found.";
if ive got a two strings
"friday - its the weekend"
"monday - back to work"
is there a PHP function or can i use a combination of functions to return just "friday" and "monday"
i can do it in VB, java and SQL but my PHP isnt up to scratch.
cheers guys