eg-259:review:php2
Review Questions
Adapted from: Robert W. Sebasta, Programming the World-Wide Web, 3rd Edition, Addison Wesley, 2006. Supporting: Contact Hour 20.
- In what two ways can arrays in PHP be created?
- What keys are used when an array is created but no keys are specified?
- Must all of the values of an array be of the same type?
- Must all of the keys of an array be of the same type?
- What exactly do the
array_keys
andarray_values
functions do? - What exactly does the
in_array
function do? - Explain the actions of the
implode
andexplode
functions. - Describe the actions of the
next
,reset
, andprev
functions. - What are the syntax and semantics of the two forms of the
foreach
statement? - Describe the result of using the
sort
function on an array that has both string and numeric values. - What is the difference between the
sort
andasort
functions? - What happens if a script defines the same function more than once?
- Are function names case sensitive?
- What value is returned by a function if its execution does not end by executing a
return
statement? - What are the two ways you can specify that a parameter is to be passed by reference?
- How can a variable used outside a function be accessed by the function?
eg-259/review/php2.txt · Last modified: 2012/03/13 20:24 by eechris