2015-04-02 file_put_contentsでファイルを書き込んだら変な文字が入り込んでいるときの対処方法 file_put_contents("hoge.inc", serialize($hoge)); serialize が原因でした。 対処方法 file_put_contents("hoge.inc", $hoge);
2015-04-02 【php】変数を文字列として展開せずに変数に入れたい -hoge = {$_POST['hoge']}; $hoge= str_replace("-", "$", $hoge); -としておいて、$に変換する