已有数组$shz=['老大'=>'宋江','老二'=>'卢俊义','教头'=>'林冲','和尚'=>'鲁智深','行者'=>'武松'];, 要获取‘宋江’这个结果以下代码为()
A: echo var_dump(array_values($shz,'宋江',true));
B: $key=array_values($shz,'宋江'); print_r($key);
C: $values=array_values($shz); print_r($values[0]);
D: $key=array_values($shz,'老大'); print_r($key);
A: echo var_dump(array_values($shz,'宋江',true));
B: $key=array_values($shz,'宋江'); print_r($key);
C: $values=array_values($shz); print_r($values[0]);
D: $key=array_values($shz,'老大'); print_r($key);
举一反三
- In order to calculate the __________ of an array of values, the array must be sorted.
- 社会主义核心价值观( ) A: core socialist values B: key socialist values C: main socialist values
- What are the author’s key values of sports and life?
- 统计数组中所有的值出现的次数的函数是( )? A: array array_count ( array $input ) B: array array_count_values ( array $input ) C: array array_values ( array $input ) D: array count_values ( array $input )
- _____________ has played a key role in promoting democratic values and principles.