2010-10-28 文字列のn文字目を直接指定 PHP 備忘録 知らなかった…直接指定できるのね。 <?php $str = 'abcdefghijklmnopqrstuvwxyz'; print $str{3}; //d