PHP

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

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

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

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