最佳答案
我在正则表达式方面遇到了一些麻烦。
这是我的原则
$pattern = "^([0-9]+)$";
if (preg_match($pattern, $input))
echo "yes";
else
echo "nope";
我运行它,并得到:
警告: preg _ match ()[ function. preg-match ] : 在