我有以下工作代碼:警告:的preg_match():內部pcre_fullinfo()
$test = '123456';
$int = preg_match('/^\d+$/', $test, $matches);
print_r(array($int, $matches));
然而,當我execute it on codepad我得到的錯誤:
Warning: preg_match(): Internal pcre_fullinfo() error -3 on line 5
但代碼上運行我的自己的機器(和代碼應該罰款恕我直言)。
我需要在將來分發我的代碼,所以如果根據某些配置它會中斷會很糟糕。那麼,鍵盤在它上面破壞的原因是什麼?通過鍵盤執行