第七章测试
1.

PHP字符串连接运算符是()。


A:

.

B:

+

C:

&&

D:

!


答案:A
2.PHP的字符串型数据,可以用以下哪些符号括起来()。
A:一对**号 B:定界符符号 C:一对双引号 D:一对单引号 3.PHP中的字符串explode和implode的功能是互为相反的。()
A:对 B:错 4.implode()函数用于将给定的字符串按照指定的字符分割成一个个子串。()
A:错 B:对 5.

要定义一个名为str的PHP变量,并为其赋值为'hello',应采用如下哪种方式?()


A:

str='hello'

B:

$str='hello'

C:

string str='hello'

D:

string $str='hello'

6.要得到字符串中字符的个数,可使用()函数。
A:count B:len C:strlen D:str_count 7.将字符串中所有英文字母转为小写的函数是:()。
A:ucfirst() B:ucwords() C:strtoupper() D:strtolower()

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