下列程序的运行结果是()。class student{function _construct(){echo "I am a student .<br>";}function teacher(){echo "I am a teacher";}}$per=new student();
A: I am a studentI am a teacher
B: I am a student
C: I am a teacher
D: 无任何输出
A: I am a studentI am a teacher
B: I am a student
C: I am a teacher
D: 无任何输出
举一反三
- 【单选题】如果输出语句:printf(“I am “student" you is teacher "). 显示内容? A. I am “student" you is teacher B. I am student you is teacher C. I am student you is teacher D. I am “student" you is teacher
- 下面语句的输出结果( )。<?php$str1="I am student ";$str2="Lily";$str3=str_replace("student",$str2,$str1)echo $str3;?> A: I am student B: I am Lily C: Lily am student D: I am student Lily
- 已知s1="I "am a student.",s2='I \'am a student',则print(s1,s2)的输出结果为( ) A: I 'am a student. I 'am a student B: I "am a student. I 'am a student C: I "am a student. I \'am a student D: 程序报错
- 设串S1='I AM',S2=' A STUDENT',则ConcatStr(S1,S2)=( )。 A: 'I AM' B: 'A STUDENT' C: 'I AM A STUDENT' D: 'IAMASTUDENT'
- “I am a student”=“am”的值是