如何在不使用 php 的情况下找到字符串的长度strlen() ?
strlen()
我知道这是一个很老的问题,但这段代码对我有用。
$s = 'string'; $i=0; while ($s[$i] != '') { $i++; } print $i;