Skip to content

Instantly share code, notes, and snippets.

@donchan922
Created October 9, 2018 11:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donchan922/3cf1529123540d57d598ce1a9047095b to your computer and use it in GitHub Desktop.
Save donchan922/3cf1529123540d57d598ce1a9047095b to your computer and use it in GitHub Desktop.
<?php
$hoge = "Hello";
$foo = "World";
echo "$hoge, $foo"; // -> Hello World
$1hoge = "invalid"; // 無効:数字で始まっているため
$_hoge = "valid"; // 有効:アンダースコアで始まっているため
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment