PHP Interview Question and Answers

71. Which PHP function would you use to send an email?
  PHP function would you use to send an email with the mail() function.
 
Your Name Your Email-ID
Your Answer
72. What is session_register()?
  session_register() is old function that registers global variables into the current session. You should stop using session_register() and use array $_SESSION to save values into the current session now.
 
Your Name Your Email-ID
Your Answer
73. Which function would you use to insert a record into a database?
  The dba_insert() function adds a record to a database.
 
Your Name Your Email-ID
Your Answer
74. What types of data can be used as array keys?
  Two types of data can be used as array keys: string and integer. When a string is used as a key and the string represent an integer, PHP will convert the string into a integer and use it as the key.
 
Your Name Your Email-ID
Your Answer
75. Where are the session values stored?
  When a value is saved into the current session by one PHP page, the PHP engine must stored this value somewhere on Web server, so that the PHP engine can retrieve it back when same visitor comes back to request another PHP page.
 
Your Name Your Email-ID
Your Answer
123456789101112


131415161718 Page 16 of 18