/ PHP / 상세보기

strpos — 문자열이 처음 나타나는 위치를 찾습니다

👁 조회 5,909 📅 2009-10-15 🔗 참고사이트

위치를 정수로 반환합니다. needle 을 발견하지 못하면, strpos()는 boolean FALSE를 반환합니다.

if (strpos($system_folder, '/') === FALSE) {
   //
}

int strpos ( string $haystack , mixed $needle [, int$offset ] )