Php Interview Question and Answers
17. |
How would you break up a delimited string into an array of substrings? |
|
The explode() function splits up a string into an array. |
|
|
18. |
What are the types of arrays in Php? |
|
An array can store one or more values in a single variable name. 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
|
|
|
19. |
Which construct can you use to define an array? |
|
You can create an array with the array() construct. |
|
|
20. |
Which function would you use to execute a SQL statement with the SQLite functions? |
|
The sqlite_query() function executes a SQL statement. |
|
|