foreach($array as $key => $value) {
if($value == "") {
unset($array[$key]);
}
}
$new_array = array_values($array);
Tuesday, March 25, 2008
php remove element in array php
Subscribe to:
Post Comments (Atom)
php,mysql,ajax hints
foreach($array as $key => $value) {
if($value == "") {
unset($array[$key]);
}
}
$new_array = array_values($array);
No comments:
Post a Comment