【单选题】根据下面的程序,说明该程序的执行结果是() #! /bin/bash #定义函数 func() { #计算输入函数的个数 echo "the function has $# parameters" } #调用函数 func a b c 1 2 3 string @ "hello world" 'hello lin' `pwd`
A.
the function has $# parameters
B.
the function has 11 parameters
C.
the function has 13 parameters
D.
the function has 10 parameters
【简答题】变量($string2)未被赋值:'; if (is_null($string2)) echo 'string2 = null'; echo '变量($string3)被unset()函数处理:'; $string3 = 'str'; unset($string3); if (is_null($string3)) echo 'string3 = null'; ?> 运行结果是什么?
【简答题】测试函数结果 string(3,"$")
【简答题】请编写一个函数,实现以下功能:将字符串“open_door”转换成“OpenDoor”,“make_by_id”转化成为“MakeById” 参考编写思路: 1 )编写一个函数convString($string)。 2 )将传递过来的 $string 字符串,转换成数组$array。 3 )把数组$array中的每个元素的开头字符转换成大写,并放回数组$arr中。 4 )把数组$array转换成...
【判断题】测定石料坚固性的溶液常采用饱和氯化钠溶液。
【判断题】梯路导轨系统决定了各梯级在自动扶梯的运动过程中的运动轨迹,是自动扶梯的工作灵魂与主导。