How can a filter out the array entries with an odd or even index number?
Array ( [0] => string1 [1] => string2 [2] => string3 [3] =&
Here's a "hax" solution:
Use array_filter in combination with an "isodd" function.
array_filter seems only to work on values, so you can first array_flip and then use array_filter.
array_flip(array_filter(array_flip($data), create_function('$a','return $a%2;')))