php

PHP: preg_match - “Delimiter must not be alphanumeric or backslash”

een 2013. 12. 10. 17:03

구분자 (# 또는 / 를 추가하면 된다



if(!preg_match ("http://", $file))     //  (X)

if(!preg_match ("#http://#", $file))   //  (O)