★ wanayoo — archive 1999 http://www.php.net/manual/de/function.strstr.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to Strings
Quick Reference
English version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
Strings
* AddCSlashes
* AddSlashes
* bin2hex
* Chop
* Chr
* chunk_split
* convert_cyr_string
* count_chars
* crypt
* echo
* explode
* flush
* get_html_translation_table
* get_meta_tags
* htmlentities
* htmlspecialchars
* implode
* join
* levenshtein
* ltrim
* md5
* Metaphone
* nl2br
* ob_start
* ob_get_contents
* ob_end_flush
* ob_end_clean
* ob_implicit_flush
* Ord
* parse_str
* print
* printf
* quoted_printable_decode
* QuoteMeta
* rawurldecode
* rawurlencode
* setlocale
* similar_text
* soundex
* sprintf
* strcasecmp
* strchr
* strcmp
* strcspn
* strip_tags
* StripCSlashes
* StripSlashes
* stristr
* strlen
* str_pad
* strpos
* strrchr
* str_repeat
* strrev
* strrpos
* strspn
* strstr
* strtok
* strtolower
* strtoupper
* str_replace
* strtr
* substr
* substr_count
* substr_replace
* trim
* ucfirst
* ucwords
Manual: strstr
View the source code for this pageSearch the site



Previous page
 strspn
 Updated
Sat, 12 Aug 2000
strtok 
Next page


strstr

(PHP3 , PHP4 )

strstr -- Findet das erste Vorkommen eines Strings

Beschreibung:

string strstr (string haystack, string needle)

Es wird alles von haystack zurück gegeben ab der ersten Fundstelle von needle bis zum Ende.

Falls needle nicht gefunden wird, ist das Ergebnis false.

Ist needle kein String, wird er zu einem Integer-Wert umgesetzt und als das diesem Wert entsprechende ASCII-Zeichen angesehen.

Beispiel 1. Strstr()-Beispiel:


$email = 'sterling@designmultimedia.com';
$domain = strstr ($email, '@');
print $domain; // gibt @designmultimedia.com zurück
      

Siehe auch stristr(), strrchr(), substr() und ereg().


 About Notes


Previous page
 strspn
 Updated
Sat, 12 Aug 2000
strtok 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.