stristr

stristr -- Case-insensitive strstr()

Description

string stristr ( string haystack, string needle)

Príklad 1 . stristr( ) example

 
?php

 
$email

 
=

 
'

 
USER@EXAMPLE.com'

 
;

 
$domain

 
=

 
stristr($email

 
,

 
'e')

 
;

 
print

 
$domain

 
;

 
/

 
/

 
outputs

 
ER@EXAMPLE.com

 
?