<?php $string = 'string'; $length = count(str_split($string)); echo $length; ?> In the second example you can achieve via using while loop.
確定! 回上一頁