My mistake with "strpos" function? php -


I get strpos to find the string variable $ string I'm trying to get the phrase "test" and if it is not defined as "test" another variable $ change is defined as $ string2 (where < Code> $ change pre-defined)

  if (strings ($ string, 'test') == incorrect) {$ change = $ string2; break; }  

But unfortunately it does not work.

Is there any mistake in the above?

Thank you.

Stops returns if you're using the === operator while comparing to use strokes.

  if (strings ($ string, 'test') === incorrect) {$ change = $ string2; break; }  

Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -