Sutlej Solutions

Tag Archives: PHP

how to destroy all session variables in php?

A PHP session can be destroyed using the sessions_destroy() function. It does not require any arguments and a single command can erase all session variables. If you’re looking to eliminate one session variable, you can use the unset() function . It will remove the session variable.

Extract all variables sent with POST , GET or PUT?

I am tired of extracting each variable posted by the FORM. weather its a $_GET or $_POST or $_PUT. I always wondered How can I extract all variables from request, especially $_POST?

Normally, I do

print_r($_POST)

OR

var_dump($_POST);

to see the contents in the $_POST variable. then extract them each one line at a time. which is , in some cases a big waste of time.

Easiest Method I found was very easy:

extract($_POST);

his code answers his …

  • Posted: February 6, 2022
  • Tags: Tech Blog
  • Comments: 0

© 2022 Sutlej Solutions

Why Sutlej Solutions

A single source solution provider for your all Web and Mobile App requirements. We understand your needs and provide simple and intelligent solutions. Our TV Gadget Reviews Blog and Custom Built Online Store as good examples of our excellent work

Need an Online Shop?

We provide full service Online Shop and Website Development and Maintenance Services.

Contact us Now: +92313335999

Business Hours

Monday
9.00pm – 6.00pm
Tuesday
9.00pm – 6.00pm
Wednesday
9.00pm – 6.00pm
Thursday
9.00pm – 6.00pm
Friday
9.00pm – 6.00pm
Saturday
9.00pm – 6.00pm
Sunday
Closed
hire web development company