标签: php
$getword = "apple(code to check if next character of apple is number)"; $storedtext = "apple2"; $getpos = strpos($storedtxt, $getword); echo $getpos;
结果为0,因为它找到带有数字作为下一个字符的苹果