I but how can i get a boolean value, true of false, if the string is occur?
i wanna to use the switch condition and i have to use only the "==" oprator
Thanks in advance
Itzik
getting boolean value if a string exist in another string
Moderator: General Moderators
Re: getting boolean value if a string exist in another strin
Code: Select all
strpos($haystack, $needle) !== falseRe: getting boolean value if a string exist in another strin
i'm sorry but i dont see anything
Re: getting boolean value if a string exist in another strin
I've updated the code.