PHP Interview Question and Answers

76. Which function would you use to merge two arrays?
  You can merge arrays with the array_merge() function.
 
Your Name Your Email-ID
Your Answer
77. What are the different types of PHP arrays?
 
    There are three different kind of arrays :
  • Numeric array – An array with a numeric ID key.
  • Associative array – An array where each ID key is associated with a value.
  • Multidimensional array – An array containing one or more arrays.
 
Your Name Your Email-ID
Your Answer
78. Which function would you use to replace a record in a database?
  The dba_replace() function replaces a record in a database.
 
Your Name Your Email-ID
Your Answer
79. What is session_register()?
  session_register() is old function that registers global variables into the current session.
 
Your Name Your Email-ID
Your Answer
80. How can we create a database using php?
  mysql_create_db();
 
Your Name Your Email-ID
Your Answer
123456789101112


131415161718 Page 17 of 18