Day: October 7, 2017

Interview questions
PHP
PHP interview questions
Programming

What is the difference between $_GET and $_POST

GET: Transfers the form data through http head location & it displays the data on URL address bar. Data can be cached. Is unsecured. URL are saved in browser history. URL can be bookmarked. Transfers limited amount of data. Can’t upload the file. POST: Transfers the form data through document body. Data can not be […]

Read More
PHP
Programming

Don’t Copy Extra Variables

Some people use predefined variables to smaller-named variables to make their code appealing. This is redundant and could increase the memory of your script. Examples of variable usage: Good Approach: <?php echo strip_tags($_POST[‘myVariable’]); ?> Bad Approach: <?php $myVariable = strip_tags($_POST[‘myVariable’]); echo $myVariable; ?>

Read More
Do NOT follow this link or you will be banned from the site!