2012-08-12 57 views

回答

3

始终搜索通过PHP documentation

if (strpos($c, "string") !== false) { 
    // "string" is in $c 
} else { 
    // "string" isn't in $c 
} 
0

您可以使用stripos函数()不区分大小写,并且strpos()进行区分大小写的搜索。