Msg#: 3632117 posted 9:24 am on Apr 22, 2008 (gmt 0)
hello forums! Can anybody suggest in the following case: How to remove an element from an index array and reseting its indexes? Example: [PHP]$array = array('x', 'y', 'z',..); unset($array); print_r($array); // results: 0 => x, 2 => z ,which doesn't reset the indexes // I would like to have the result as : 0 => x, 1 => z , ie rearraning the indexes[/PHP] How to accomplish this ? Thanks in advance for the suggestions.