harumemo

メモ書きです。

PHPの文字列比較で後方一致(正規表現)

preg_match('/foo\z/', $str);

php.o0o0.jp