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.
 
Your Name Your Email-ID
Your Answer
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
 
Your Name Your Email-ID
Your Answer
19. Which construct can you use to define an array?
  You can create an array with the array() construct.
 
Your Name Your Email-ID
Your Answer
20. Which function would you use to execute a SQL statement with the SQLite functions?
  The sqlite_query() function executes a SQL statement.
 
Your Name Your Email-ID
Your Answer
12345678 Page 5 of 8