Is it Possible to Get Value From Strfind ?
#3

Quote:
Originally Posted by colonel-top
Посмотреть сообщение
Is it Possible to Get Value From Strfind ? Like this
PHP код:
if(strfind(text,"this is mean to id 1",true) != -1
Yes. You may not realize it, but you already have the variable stored in "text".

In this case, you're searching for "1" inside "this is mean to id 1".
What you're comparing in the function is text with "this is mean to id 1". This means you've put the "1" inside the variable text, which you can then use to return the answer.
Reply


Messages In This Thread
Is it Possible to Get Value From Strfind ? - by colonel-top - 05.04.2016, 11:40
Re: Is it Possible to Get Value From Strfind ? - by AndySedeyn - 05.04.2016, 12:12
Re: Is it Possible to Get Value From Strfind ? - by introzen - 05.04.2016, 13:04
Re: Is it Possible to Get Value From Strfind ? - by Sascha - 05.04.2016, 13:09

Forum Jump:


Users browsing this thread: 1 Guest(s)