There is no parse error in this code. Check the line before that one.
And see stristr(), strcasecmp() and strtolower() for ways to do case
independant comparisons.
-Rasmus
On Fri, 7 Sep 2001, Nikola Veber wrote:
> Hi !
>
> Can anyone tell me why this line returns the parse error
>
> if (strstr
Hi !
Can anyone tell me why this line returns the parse error
if (strstr($name, "firstname") or strstr($ime, "lastname")){
}
With this line I'd like to determine if string $name , which contains both first and
last name, has earlier defined first and last name, with no difference of the
order
2 matches
Mail list logo