第六章 字符串使用:字符串使用6.1字符串:字符串
6.1字符串:字符串
[单选题] <?php
$A = "PHPlinux";
$B = "PHPLinux";
$C = strstr($A,"L");
$D = stristr($B,"l");
echo $C ." is ".$D;
?>
以下代码运行结果为( )。

选项:[is Linux, PHP is inux, PHP is Linux, PHP is
]
[单选题]下列哪个函数是将数组转换为字符串?( )

选项:[natsort()
, explode()
, imploed()
, arsort()
]
[单选题] <?php
$first = "This course is very easy !";
$second = explode(" ",$first);
$first = implode(",", $second);
echo $first;
?>
以下代码运行的结果为( )。

选项:[This course is very easy !
, This course is very easy !,
, This,course,is,very,easy,!
, 提示错误
]
[单选题] <?php
$email='gaofeng@lampbrother.com.cn';
$str = ____($email, '@');
$info = ____('.',$str);
____($info);
?>
输出结果为:Array ([0] => @lampbrother [1]=>com[2]=>cn)
以上程序横线处应该使用的函数为( )。

选项:[strchr, split, var_dump
, strstr, explode, print_r
, strstr,explode, echo
, strchr, split, var,_dump
]
[单选题]PHP中,下列哪个函数是将字符串前后颠倒?( )

选项:[strfirst()
, strrev()
, strrpos()
, strstr()
]
[单选题] <?php
$text = " tllo ";
echo strlen(trim($text));
?>
以上字符的长度是( )。

选项:[5
, 9
, 7
, 3
]
[单选题]将字符串中所有英文单字的开头字母转换为大写的函数应该是( )。

选项:[strtoupper()
, ucwords()
, strtolower()
, ucfirst()
]
[单选题]在PHP中,'+'操作符的功能不包括( )。

选项:[字符串连接
, 类型自动转换
, 数组数据合并
, 变量数据相加
]
[单选题]下列PHP函数中不能直接在页面输出字符串的函数是( )。

选项:[printf
, sprintf
, echo
, print
]

温馨提示支付 ¥3.00 元后可查看付费内容,请先翻页预览!
点赞(1) dxwkbang
返回
顶部