/** * PHP中通过偏移量访问字符串 * * @param * @arrange 512-笔记网: jb51.cc **/ $str = "M"; $str{2} = "n"; $str{1} = "a"; $str = $str . "i"; print $str; /*** 来自编程之家 jb51.cc(jb51.cc) ***/