I have a quick question about storing data in variable. This is out of curiosity. And also I want a clean code. Hope you may enlighten me about it.
In submitting a form in PHP, what is the difference if I store a POST data in a variable? example:
$username = $_POST['username'];
insert_user($username);
and
insert_user($_POST['username']);
I am currently using the first one, because I think it is much cleaner. But is there a performance impact, say, if I have 10 post data and store them in a variable?
Hope I explained myself clearly. Thank You.
Cheers!
$_POST['variable']contains a huge data, like for instance sending a base64 encoded image via form submission