|findstring 1.0||algorithms : strings||--||6653||2002-12-01 12:49:51||[ show ]|
|A short, simple function that finds the first occurance of the substring $search within the string $text. If $mode is equal to zero, it will return the starting position of the substring. Otherwise, it will return the position of the character that comes after the substing. Returns -1 if the substring is not found.|
Comments or questions?
PX is running PHP 5.2.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.