★ wanayoo — archive 1999 http://fr.php.net/manual/pt_BR/function.strstr.phpNouvelle recherche | Portail wanayoo
PHP Thursday, March 08, 2001  
downloads | documentation | support | reporting bugs | links | search:  

lookup:
Manual do PHPManual do PHP
StringsStrings
 AddCSlashesAddCSlashes
 AddSlashesAddSlashes
 bin2hexbin2hex
 ChopChop
 ChrChr
 chunk_splitchunk_split
 convert_cyr_stringconvert_cyr_string
 count_charscount_chars
 crc32crc32
 cryptcrypt
 echoecho
 explodeexplode
 get_html_translation_tableget_html_translation_table
 get_meta_tagsget_meta_tags
 hebrevhebrev
 hebrevchebrevc
 htmlentitieshtmlentities
 htmlspecialcharshtmlspecialchars
 implodeimplode
 joinjoin
 levenshteinlevenshtein
 localeconvlocaleconv
 ltrimltrim
 md5md5
 MetaphoneMetaphone
 nl2brnl2br
 OrdOrd
 parse_strparse_str
 printprint
 printfprintf
 quoted_printable_decodequoted_printable_decode
 quotemetaquotemeta
 rtrimrtrim
 sscanfsscanf
 setlocalesetlocale
 similar_textsimilar_text
 soundexsoundex
 sprintfsprintf
 strncasecmpstrncasecmp
 strcasecmpstrcasecmp
 strchrstrchr
 strcmpstrcmp
 strcollstrcoll
 strcspnstrcspn
 strip_tagsstrip_tags
 stripcslashesstripcslashes
 stripslashesstripslashes
 stristrstristr
 strlenstrlen
 strnatcmpstrnatcmp
 strnatcasecmpstrnatcasecmp
 strncmpstrncmp
 str_padstr_pad
 strposstrpos
 strrchrstrrchr
 str_repeatstr_repeat
 strrevstrrev
 strrposstrrpos
 strspnstrspn
 strstrstrstr
 strtokstrtok
 strtolowerstrtolower
 strtoupperstrtoupper
 str_replacestr_replace
 strtrstrtr
 substrsubstr
 substr_countsubstr_count
 substr_replacesubstr_replace
 trimtrim
 ucfirstucfirst
 ucwordsucwords
 wordwrapwordwrap

previousstrspn
strtoknext

Last updated: Fri, 02 Mar 2001
view this page in English | Brazilian Portuguese | Dutch | French | German | Hungarian | Italian | Japanese | Korean | Spanish | Plain HTML

strstr

(PHP 3, PHP 4 )

strstr -- Find first occurrence of a string

Description

string strstr (string haystack, string needle)

Returns all of haystack from the first occurrence of needle to the end.

If needle is not found, returns false.

If needle is not a string, it is converted to an integer and applied as the ordinal value of a character.

Nota: Note that this function is case-sensitive. For case-insensitive searches, use stristr().

Exemplo 1. Strstr() example


$email = 'sterling@designmultimedia.com';
$domain = strstr ($email, '@');
print $domain; // prints @designmultimedia.com
      

See also stristr(), strrchr(), substr(), and ereg().

previousstrspn
strtoknext

Last updated: Fri, 02 Mar 2001
add note | about notes


show source | credits | mirror sites:  

Copyright © 1998,1999,2000,2001 The PHP Association, Inc.
All rights reserved.
This mirror generously provided by: L'Université Michel de Montaigne Bordeaux III
Last updated: Thu Mar 08 03:01:32 2001