I am very new to PHP and I can't seem to get the answer to the following: I have written a very basic socket client (using a tutorial!) that connects to a site and issues a command then echo's the result in the browser. The return string is held in an array called $results. At the end of the script I simply issue:
echo $results; or print_r ($results); both dump the string to screen.
My problem is I want to then search the retuned result for a certain string. e.g the full returned value might be:
NM:John Doe,CMP:Big Business LTD,PH:555-43323,SX:M,DT:010808,ST:Allowed
So, search string for "ST:Allowed" and if exists sent to $this_page else $that_page.
I have tried using isset but this doesn't work.
Can anyone help?