我想知道如果那个 ip 地址有 x 的字符串,我如何检查我的字符串(特别是一个 ip 地址)
例如
$ip = "66.124.61.23" // ip of the current user
$x = "66.124" // this is the string what I want to check in my $ip.
那么如何检查 $ip 是否有 $x 字符串呢?
如果您很难理解这种情况,请务必发表评论。
谢谢。
最佳答案
关于php - 检查字符串是否包含PHP中的字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11138882/