Tagged: Php Interview Questions and Answers

Php Interview Questions and Answers -16

How to store the uploaded file to the final location? move_uploaded_file ( string filename, string destination) This function checks to ensure that the file designated by filename is a valid upload file (meaning that...

Php Interview Questions and Answers -06

How can we register the variables into a session? session_register($session_var); $_SESSION[‘var’] = ‘value’; What is the difference between characters \023 and \x23?  The first one is octal 23, the second is hex 23. With...

Php Interview Questions and Answers -05

Why doesn’t the following code print the newline properly? <?php $str = ‘Hello, there.\nHow are you?\nThanks for visiting techpreparation’; print $str; ?> Because inside the single quotes the \n character is not interpreted as...

Php Interview Questions and Answers -03

Would I use print “$a dollars” or “{$a} dollars” to print out the amount of dollars in this example? In this example it wouldn’t matter, since the variable is all by itself, but if...