O'Reilly logo

Programming PHP, 3rd Edition by Peter MacIntyre, Kevin Tatroe, Rasmus Lerdorf

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

stristr

Synopsis

string stristr(string string, string search[, int before])

Returns the portion of string from the first occurrence of character using case-insensitive comparison until the end of string, or from the first occurrence of character until the beginning of string if before is specified and true. If character is not found, the function returns false. If character contains more than one character, only the first is used.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required