$keys = array_keys($array);
$values = array_values($array);
Note however that array(0=>'item')
and array('item')
are exactly identical as far as PHP is concerned. There is no such thing as a php array item without an index. If you do not supply an index PHP will silently add a numeric index.