2014-06-09から1日間の記事一覧

PHP foreachで配列を反復処理する

PHP

ネタ元 http://www.php.net//manual/ja/control-structures.foreach.php

PHPで改行テキストを配列に変換する

PHP

PHPでshift-jisをutf-8に変換する

PHP

mb_convert_encoding($string, 'utf8', 'sjis-win');文字コードの名称として「CP932」というのがあるが、これは別名「sjis-win」とも呼ばれている。 ネタ元 http://hamamuratakuo.blog61.fc2.com/blog-entry-446.html