存档
文章标签 ‘char’
php 类似charat函数,获取string中的字符
2011 年 6 月 13 日
没有评论
$char = $string{$position}; // where $position is the position of the character you are looking for
$string = "testing";
echo $string{2}; // prints 's'