Hey all,
I've got a string like this:
$play_days="0123456";
I need to search for individual numbers in the string. If the number is not found, I simply echo a statement. Everything is fine except when the number found resides in the zero position in the string. I've tried the following things:
if (strpos($play_days,'0')!=false){echo "Not Found!";}
if (strpos($play_days,'0')!=""){echo "Not Found!";}
Neither of which work for the digit in the zero position. Can anyone give me a hand with this?
thanks!
I've got a string like this:
$play_days="0123456";
I need to search for individual numbers in the string. If the number is not found, I simply echo a statement. Everything is fine except when the number found resides in the zero position in the string. I've tried the following things:
if (strpos($play_days,'0')!=false){echo "Not Found!";}
if (strpos($play_days,'0')!=""){echo "Not Found!";}
Neither of which work for the digit in the zero position. Can anyone give me a hand with this?
thanks!