PHP-manual | ||
---|---|---|
Föregående | Nästa |
Returns the numeric position of the first occurrence of needle in the haystack string. Unlike strpos(), stripos() is case-insensitive.
Note that the needle may be a string of one or more characters.
If needle is not found, stripos() will return boolean FALSE.
Varning |
Den h�r funktionen kan returnera det booleska v�rdet FALSE, men den kan ocks� returnera ett icke-booleskt v�rde som �r likv�rdigt med FALSE, till exempel 0 eller "". V�nligen l�s sektionen om booleska datatyper f�r mer information. Anv�nd ===- operatorn f�r att testa returv�rdet fr�n den h�r funktionen. |
If needle is not a string, it is converted to an integer and applied as the ordinal value of a character.
The optional offset parameter allows you to specify which character in haystack to start searching. The position returned is still relative to the beginning of haystack.
Not: Den h�r funktionen �r bin�r-s�ker.
See also strpos(), strrpos(), strrchr(), substr(), stristr(), strstr(), strripos() and str_ireplace().
Föregående | Hem | Nästa |
stripcslashes | Upp | stripslashes |