Parsing a document

From: Date: Sat, 28 Oct 2000 19:39:58 +0000
Subject: Parsing a document
Groups: php.general 
Request: Send a blank email to php-general+get-22481@lists.php.net to get a copy of this message
How does one go about parsing a document in PHP to extract certain info? For instance, I have a document opened with fopen, and read and stored as a variable. How do I parse that variable and save all zip codes in it as an array, or write them to a file, or something? I can do an ereg() to find the zip codes, but how do I actually save them all? Thanks in advance Adam

« previous php.general (#22481) next »