Microsoft Word - Core PHP Programming Using PHP to Build Dynamic Web Sites

(singke) #1

The script offers a form for inputting a zip code. It must have five digits and may be
followed by a dash and four more digits. The functionality of the script hinges on the
regular expression


^([0-9]{5})(-[0-9]{4})?$

Free download pdf