i have a problem with arrays. Just so i can have something to do i am building a webshop without MySQL or PostgreSQL. The thing is that i need to know have to delete arrays that is keeped in another document.
<?php
$produkter = array(
"Test1" => array("beskrivelse"=>"Fungerer bra", "pris"=>"899kr", "info"=>'<a href="#">Les Mer</a>'),
"Test2" => array("beskrivelse"=>"Stort", "pris"=>"699kr", "info"=>'<a href="#">Les Mer</a>'),
"Test3" => array("beskrivelse"=>"Smaker Godt", "pris"=>"10kr", "info"=>'<a href="#">Les Mer</a>'),
"Test4" => array("beskrivelse"=>"Bra", "pris"=>"998kr", "info"=>'<a href="#">Les Mer</a>')
);
?>
This is a document called products.php. What i need is a file that can be called delete.php or something that can delete on of this array's. delete.php is to be used in the Admin section. Let's say i'm gonna delete "Test2" what to do then?
And while i'm here, anybody knows how to add an variable to the document? Let's say i'm gonna add "Test5"?
I'll be gratefull for answers ot tips