stristr
(PHP3 >= 3.0.6 , PHP4)
stristr --- 不分大小寫找出字串第一次出現的地方
語法 :
string stristr(string haystack, string needle)說明 :
傳回 needle第一次出現在 haystack的地方,到 haystack結尾的字串,needle和 haystack都是以不區分大小寫的方式。
如果沒有找到 needle則傳回false。
如果 needle不是字串,則會將它轉換成整數,並且按照字元的順序值來使用。
參考 : strchr( ) strrchr( ) substr( ) ereg( )