LoginSignup
0
0

More than 5 years have passed since last update.

PHPで正規表現のマッチングを判断する方法

Posted at

例えば入力された文字列が半角英数字の場合

スクリーンショット 2019-03-22 17.57.35.png

preg_match(半角数字,文字列)
この文字列の中身が、半角英数字
→これが正なら1を返す、誤りなら0を返す。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0