[prev] [index] [next]

Exercise: Phone Lists

Write a PHP script to produce a phone list:

 StaffName   Phone   Office
-----------+-------+--------

Takes a single command-line argument

  • treats it as a fragment of a name
  • shows details only for staff whose names match
  • uses case-insensitive, SQL-style matching   (not regexps)
Usage:

$ php  phone.php  shep