老师我这个怎么运行结果为92啊

来源:1-6 编程练习

weixin_慕姐0507771

2019-03-25 15:25:31

<?php

header('content-type:text/html;charset=utf-8');

$name='strlen';


$call='10795856';


$motto='if you shed traes when you miss the sun, then you would miss the stars';


$str1=$name."".$call."".$call."".$motto;

echo "所有信息的长度为:",strlen($str1);


写回答

1回答

好帮手慕查理

2019-03-25

您好,因为同学在拼接字符串时拼接了两次$call,再加上$motto变量中,后面多了一个空格,所以最后的结果为93。祝学习愉快!

0

0 学习 · 4928 问题

查看课程