PHP populate single array with no keys -


i have indexed array this: $indexed = array(0=>2,1=>7,3=>9)

but need single array, without indexes, this: $notindexed = array(2,7,9)

zend_form not accept $indexed parameter function populate() multi checkboxes works fine $notindexed

how can dynamically transform $indexed $notindexed

thanx answers

$notindexed = array_values($indexed); 

Comments

Popular posts from this blog

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

mysqli - Php Mysqli_fetch_assoc Error : "Warning: Illegal string offset 'name' in" -

c - "error: subscripted value is neither array nor pointer nor vector", but why? -