Hello,
I have this string: $string = "Life Is Great with Brooke Burke LIG 101 Big Spender";
I want to find if the word 'Big' is in this string.
How can I do it?
Thanks, Assaf
[man]strpos[/man] - [man]stripos[/man]
Can be used for true / false.
You could also use preg_match() for this
if (preg_match("/Big/",$string)){ echo "yup"; }else{ echo "nope"; }
That's possible, but it would be overkill, imposing unnecessary overhead.
The name of the game is "options" 🙂
The name of the game is "options"
Sorry, you might be looking for the Perl forum 😛 Nah, it is okay, but you do need to point out why preg_match() shouldnt be used in this case.
...you might be looking for the Perl forum...
😃