try it like this:
switch(true){
case strstr($line,"zip"):
echo "found zip";
break;
}
On Thu, 7 Feb 2002 14:29:45 -0600, Chuck Barnett wrote:
>Hello, I am trying to find out if a string is in a line being read
>from a
>file. I should use strstr for this I am pretty sure.
>I want to do
Hello, I am trying to find out if a string is in a line being read from a
file. I should use strstr for this I am pretty sure.
I want to do something like this: switch(strstr($line, case argument)) but
I don't know if it is possible. For example, I am looking for Zip in a line
but it will not
2 matches
Mail list logo