PHP

    strpos — 문자열이 처음 나타나는 위치를 찾습니다
    • 조회수 5,900
    • 작성일 2009-10-15
    •  

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

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

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