|
@@ 3521-3529 (lines=9) @@
|
| 3518 |
|
return null; |
| 3519 |
|
} |
| 3520 |
|
|
| 3521 |
|
if (!is_int($params[1]) |
| 3522 |
|
&& !is_float($params[1]) |
| 3523 |
|
&& !is_string($params[1]) |
| 3524 |
|
&& $params[1] !== null |
| 3525 |
|
&& !(is_object($params[1]) && method_exists($params[1], '__toString')) |
| 3526 |
|
) { |
| 3527 |
|
trigger_error('array_column(): The column key should be either a string or an integer', E_USER_WARNING); |
| 3528 |
|
return false; |
| 3529 |
|
} |
| 3530 |
|
|
| 3531 |
|
if (isset($params[2]) |
| 3532 |
|
&& !is_int($params[2]) |
|
@@ 3531-3539 (lines=9) @@
|
| 3528 |
|
return false; |
| 3529 |
|
} |
| 3530 |
|
|
| 3531 |
|
if (isset($params[2]) |
| 3532 |
|
&& !is_int($params[2]) |
| 3533 |
|
&& !is_float($params[2]) |
| 3534 |
|
&& !is_string($params[2]) |
| 3535 |
|
&& !(is_object($params[2]) && method_exists($params[2], '__toString')) |
| 3536 |
|
) { |
| 3537 |
|
trigger_error('array_column(): The index key should be either a string or an integer', E_USER_WARNING); |
| 3538 |
|
return false; |
| 3539 |
|
} |
| 3540 |
|
|
| 3541 |
|
$paramsInput = $params[0]; |
| 3542 |
|
$paramsColumnKey = ($params[1] !== null) ? (string) $params[1] : null; |