>>90
stristrじゃなくてstriposにしたら?
if(stripos(〜) == 0) で文頭を検出できるでしょう