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'
$char = $string{$position}; // where $position is the position of the character you are looking for $string = "testing"; echo $string{2}; // prints 's'