fx array_reverse. other php version