每日一题(4)
上一篇 /
下一篇 2007-10-10 22:22:07
/ 个人分类:每日一题
5. What is the difference between print() and echo()?
A. print() can be used as part of an expression, while echo() can’t
B. echo() can be used as part of an expression, while print() can’t
C. echo() can be used in the CLI version of PHP, while print() can’t
D. print() can be used in the CLI version of PHP, while echo() can’t
E. There’s no difference: both functions print out some text!
Answer: A
6. What is the output of the following scrīpt?
<?php
$a = 10;
$b = 20;
$c = 4;
$d = 8;
$e = 1.0;
$f = $c + $d * 2;
$g = $f % 20;
$h = $b - $a + $c + 2;
$i = $h << $c;
$j = $i * $e;
print $j;
?>
A. 128
B. 42
C. 242.0
D. 256
E. 342
Answer: D
导入论坛
收藏
分享给好友
管理
举报
TAG:
每日一题