문자열에 다른 문자열이 포함되어 있는지 확인하려고합니다.이 경우 strpos가 false를 반환하는 이유는 무엇입니까?
는 여기에 내가 반환하는 것을 strpos 볼 에코 기능을 썼을 때, 그것은 거짓 보여 주었다 코드
$insta_share_link='https://instagram.com/p/BIR-kNBgyt-';
if(strpos($insta_share_link,'instagram.com/p/'))
{
//Some code...
}
에게 있습니다.
왜?
'https : //instagram.com/p/BIR-kNBgyt-' –
Sry에는'www.instagram.com/p /'가 없으므로. 그 전쟁 오타. 편집 됨. –
작동합니까 https://3v4l.org/ntv2B –