how can i delete one field of array ??
for examples: $temp_array = array ("a", " ", "b", " ", "c");
how can i delete the blank field ??
The manual is a great place to start with stuff like this, I didn't know how to solve your problem but came up with these two functions in about 1½ mins
http://www.php.net/manual/en/function.array-push.php http://www.php.net/manual/en/function.array-pop.php
Hope that helps
Nick
You could always write a custom function to do it for you.
<?
function stripgaps($arrayin) { for ( $temp=0; $temp<count($inarray); $temp++ ) { if ( $inarray[$temp] != "" ) { $outarray[]=$inarray[$temp]; } } return($outarray); }
?>
I think thats correct.
Mark.