A: echo $name+”
”
B: echo $name+$pass
C: echo $name."
"+$pass
D: echo $name.$pass
举一反三
- 在PHP中,定义一个常量define(‘NAME’,’大咖’),以下语句正确输出“大咖”的是 A: echo name; B: echo NAME; C: echo $name; D: echo $NAME;
- 【单选题】The order of English name and Chinese Name. A. Chinese name: family name + given name English name: given name+ middle name + last name B. Chinese name: given name+ middle name + last name English name: family name + given name
- $a=84; if($a>60) echo “pass ”; echo “end”; 的输出结果是()。
- php输出拼接字符串正确的是( ) A: echo $a+”hello” B: echo a+ C: echo $a.”hello” D: echo ‘{$a}hello’
- 下列属于PHP关键字的是( )。 A: class B: echo C: apache D: name
内容
- 0
The order of people’s names in English is _____ A: given name+ surname+ middle name B: surname +given name + middle name C: middle name + given name+ surname D: given name+ middle name + surname
- 1
$str = "My name is Jack, and what is your name?";echo substr_count ($str,“name”);程序的输出结果为()。 A: 1 B: 2 C: 3 D: 4
- 2
1)运行下面一段代码,能正确输出的是(C)。(选择两项) A: A.int age=20;string name=”如花”;<br>Console.write(“姓名”+name+”年龄”+age); B: B.int age=20;string name=”如花”;<br>Console.write(“姓名{0},年龄为{1}”,name,age); C: C.int age=20;string name=”如花”;<br>Console.write(name,age); D: D.int age;string name;<br>Console.write(“姓名”+name+”年龄”+age);
- 3
<;?php$str2="what Is YOUR name"; $replace2=array("a","o","A","O"); echo str_replace($replace2,"",$str2)."<;br>;";?>;以上程序的运行结果是( )。 A: wht Is YUR nme B: whAt Is YoUR nAme C: Is D: a o A O
- 4
$x=5; $y=10; echo($x/$y)."[br][/br]"; echo$x%$y."[br][/br]"; echo$x.$y."[br][/br]"; echo$x!==$y 输出结果是什么?