• 2022-05-29
    PHP输出拼接字符串正确的是
    A: echo $name+”

    B: echo $name+$pass
    C: echo $name."
    "+$pass
    D: echo $name.$pass
  • D

    内容

    • 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 输出结果是什么?