语句“echo str_replace("world","Peter","Hello world!");”的运行结果是
举一反三
- 已知$str = " Hello World! ";下列说法正确的是: A: trim($str)结果是" Hello World!"; B: ltrim($str)结果是"Hello World! "; C: trim($str)结果是" Hello World!"; D: trim($str)结果是"Hello World!";
- 以下语句执行结果是()String str = " hello World ";System.out.println(str.trim()); A: hello World B: hello World C: helloWorld D: 程序异常
- 给定一个java程序的代码片断如下,运行后正确的输出结果是( )。String s=”hello, world”;String str = s.replace(“,” , ” ”);System.out.println(str); A: hello world; B: hello, world C: HELLO WORLD D: HELLO ,WORLD;
- 该语句echo substr("Hello world",10)."<br>";打印结果为______(1)_______,该语句echo substr("Hello world",-10)."<br>";打印结果为______(2)_______,该语句echo substr("Hello world",-10,-2)."<br>";打印结果为____(3)________,
- 下面代码的运行结果是( )。var str= "hello world" ;var str1=str.toUpperCase();var str2=str.toLowerCase() ;alert (str1) ;alert (str2) ; A: "HELLO WORLD","HELLO WORLD" B: "HELLO WORLD","hello world" C: "hello worl","HELLO WORLD" D: "hello world","hello world"