字符串目前阵列ATA Report of 7th Apr 2014, ATA Report of 17th Apr 2014, ATA Report of 27th Apr 2014
字符串与PHP中的子字符串比较?
我有子字符串中7th Apr 2014
我如何才能找到ATA Report of 7th Apr 2014
位置
我甲肝像这样使用,但不是为我工作
$date = "7th Apr 2014"
if (strpos("ATA Report of 7th Apr 2014", $date) !== false){
//my code.........
}
你是什么意思“没为我工作”它应该工作得很好 – samayo
@Simon_eQ,它不会正常工作,因为'strpos()'使用不当。 –