<?php
$myArray = [9314802498, 9314801890, 'MOSWAPELE ESTHER', 'BENNETH'];
$myArray = array_merge(array_filter($myArray, function($key) {return $key % 2 == 0}, ARRAY_FILTER_USE_KEY), array_filter($myArray, function($key) {return $key % 2 == 1}, ARRAY_FILTER_USE_KEY));
var_dump($myArray);
- Output for 7.0.0 - 7.0.2
- Parse error: syntax error, unexpected '}', expecting ';' in /in/8dDTU on line 5
Process exited with code 255. - Output for 5.5.24 - 5.5.31, 5.6.8 - 5.6.17
- Parse error: syntax error, unexpected '}' in /in/8dDTU on line 5
Process exited with code 255.
preferences:
170.31 ms | 1395 KiB | 28 Q