$email='gaofeng@lampbrother.com.cn';
$str = ____($email, '@');
$info = ____('.',$str);
____($info);
?>
输出结果为:Array ([0] => @lampbrother [1]=>com[2]=>cn)
举一反三
- 以下程序横线处应该使用的函数为( )。<;?php$email='gaofeng@lampbrother.com.cn';$str = ____($email, '@');$info = ____('.',$str);____($info);?>;输出结果为:Array ([0] =>; @lampbrother [1]=>;com[2]=>;cn) A: strstr, explode, print_r B: strchr, split, var_dump C: strstr,explode, echo D: strchr, split, var,_dump
- <?php $email='gaofeng@lampbrother.com.cn'; $str = ____($email, '@'); $info = ____('.',$str); ____($info); ?>输出结果为:Array ([0] => @lampbrother [1]=>com[2]=>cn)以上程序横线处应该使用的函数为( )。 A: strchr, split, var_dump B: strstr, explode, print_r C: strstr,explode, echo D: strchr, split, var,_dump
- 以下程序横线处应该使用的函数为:() <?php $email = ‘langwan@thizlinux.com.cn’; $str = ____($email,‘@’); $info = ____(‘.’,$str); ____($info); ?> 输出结果为: Array ([0] => @thizlinux [1]=>com[2]=>cn)
- 以下程序横线处应该使用的函数为:$email=‘langwan@thizlinux.com.cn’;$str=__($email,‘@’);$info=__(‘.’,$str);__($info);输出结果为:Array([0]=>@thizlinux[1]=>com[2]=>cn)() A: strchr, split, var_dump B: strstr, explode, print_r C: strstr,explode, echo D: strchr, split, var,_dump
- 以下程序横线处应该使用的函数为:( ) <?php $email = ‘langwan@thizlinux.com.cn’; $str = ____($email,‘@’); $info = ____(‘.’,$str); ____($info); ?> 输出结果为:Array ([0] => @thizlinux [1]=>com[2]=>cn) 输出结果是一个数组 A: strchr, split, var_dump B: strstr, explode, print_r C: strstr,explode, echo D: strchr, split, var,_dump
内容
- 0
【单选题】以下代码返回的结果为()。 <? $str = "LAMP"; $str1 = "LAMPBrother"; $strc = strcmp($str, $str1); switch ($strc){ case 1: echo "str > str1"; break; case -1: echo "str < str1"; break; case 0: echo "str = str1"; break; default: echo "str <> str1"; } ?> (5.0分) A. true B. str <> str1 C. 程序运行出错 D. 根据版本来定
- 1
以下程序能够实现输出“PHP从入门到精通”的有() A: php $str=array('PHP','从入门','到精通'); foreach($str as $link){ echo $link; } B: 'PHP','2'=>'从入门','3'=>'到精通'); for($i=0;$i<=2;$i++){ echo $str[$i]; } C: 'PHP','2'=>'从入门','3'=>'到精通'); for($i=1;$i<=3;$i++){ echo $str[$i]; } D: php $str=array('PHP','从入门','到精通'); for($i=0;$i<=2;$i++){ echo $str[$i]; }
- 2
某用户的Email地址为liaoli@sina.com.cn,其中()是该用户的用户名。 A: liaoli B: sina C: com D: cn
- 3
国内各级政府的网站在注册域名时,应该注册CN域下的通用域名是( ) A: com B: biz C: gov D: info
- 4
请阅读以下程序,分析程序执行的结果。<;?php$str = "true or false;";if(eval($str)){echo 1;}else{echo 0;}?>;