Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(isset($_GET['sterge']))
- {
- $get=$_GET['sterge'];
- $key=array_search($get, $_SESSION['produse']);
- echo $key; //prints 0 if i set $get for the first element in the array, prints nothing if i set the second element, prints 2 for third element and so on...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement