Hi All
How do I delete an item from an array and then resort them.
For Example:
$SESSION["S_SEARCH_PROFILES"][$NextProfileID] = array("ProfileID" => $NextProfileID, "AdvType" => $POST["advertisingtype"], "Country" => $_POST["country"], "Area" => $Areas, "Occupancy" => $Occupancies);
The user can add three profiles to the array which consist of the above elements. The array would look like
Array ( [1] => Array ( [ProfileID] => 1
[AdvType] => 1
[Country] => 1|Spain - Mainland
[Area] => 34
[Occupancy] => )
[2] => Array ( [ProfileID] => 2
[AdvType] => 1
[Country] => 2|Spain - Balearic Islands
[Area] => 44 [Occupancy] => ) )
I want to delete number 1 and move anything after that effectively resorting the items.
H E L P !!!!
Many thanks
BB