int substr_count ( string haystack, string needle )
Die Funktion substr_count() ermittelt, wie oft needle in dem String haystack vorkommt, und gibt die Anzahl der Vorkommen zurück.
www.inside-php.deint mb_substr_count ( string haystack, string needle [, string encoding ] )
mb_substr_count() returns the number of times the needle substring occurs in the haystack string.
www.inside-php.deDas zweite hier vorgestellte Konzept ist der Aufruf der Funktion strpos ( ) . strpos ( ) ist eine in PHP eingebaute Funktion, die nach einem String in einem anderen String sucht.
In diesem Fall suchen wir nach 'MSIE' (die so genannte Nadel, engl. needle) in $_SERVER['HTTP_USER_AGENT'] (der so genannte Heuhaufen, engl. haystack).
php.netThe second concept we introduced was the strpos ( ) function call. strpos ( ) is a function built into PHP which searches a string for another string.
In this case we are looking for 'MSIE' (so-called needle) inside $_SERVER['HTTP_USER_AGENT'] (so-called haystack).
php.netΘέλετε να προσθέσετε μια λέξη, φράση ή μετάφραση?
Καταχωρίστε νέο λήμμα.