Advertisement
Guest User

Untitled

a guest
Feb 28th, 2015
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. if(isset($_GET['sterge']))
  2. {
  3. $get=$_GET['sterge'];
  4. $key=array_search($get, $_SESSION['produse']);
  5. 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...
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement