Skip to content

Instantly share code, notes, and snippets.

@nishinoshake
Created March 22, 2016 09:54
Show Gist options
  • Save nishinoshake/9c12b7132973ad396b40 to your computer and use it in GitHub Desktop.
Save nishinoshake/9c12b7132973ad396b40 to your computer and use it in GitHub Desktop.
入力チェック
// 文字列を強制する
$name = isset($_POST['name']) && is_string($_POST['name']) ? $_POST['name'] : '';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment