PHP-manual | ||
---|---|---|
Föregående | Nästa |
Returns the numeric position of the first occurrence of needle in the haystack string. Unlike the strrpos(), this function can take a full string as the needle parameter and the entire string will be used.
If needle is not found, strpos() 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. |
Not: Den h�r funktionen �r bin�r-s�ker.
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.
See also strrpos(), stripos(), strripos(), strrchr(), substr(), stristr(), and strstr().
Föregående | Hem | Nästa |
strpbrk | Upp | strrchr |