字符串长度函数练习
来源:1-6 编程练习
代码两万行
2019-02-17 19:58:21
$name='stefen'; $call='10795856'; $motto='If you shed tears when you miss the sun,then you would miss the stars'; echo strlen($name).'<br/>',strlen($call).'<br/>',strlen($motto).'<br/>';
老师请检查。
1回答
您好,题目要求是:三条信息连接成一个字符串,求字符串的长度。可以修改为:
<?php $name='stefen'; $call='10795856'; $motto='If you shed tears when you miss the sun,then you would miss the stars'; $string = $name.$call.$motto; echo strlen($string);
如果解决了您的问题,请采纳。祝学习愉快!
相似问题