PHP Interview Question and Answers
76. |
Which function would you use to merge two arrays? |
|
You can merge arrays with the array_merge() function. |
|
|
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.
|
|
|
78. |
Which function would you use to replace a record in a database? |
|
The dba_replace() function replaces a record in a database. |
|
|
79. |
What is session_register()? |
|
session_register() is old function that registers global variables into the current session. |
|
|
80. |
How can we create a database using php? |
|
mysql_create_db(); |
|
|