Re: Question about parsing an array
| From: | Christopher Allen | Date: | Thu, 07 Dec 2000 16:04:53 +0000 |
| Subject: | Re: Question about parsing an array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-29147@lists.php.net to get a copy of this message | ||
Vlad,
Look into this:
www.php.net/manual/function.ereg.php
This way you can specify exactly what you want to match and it will palce it
into an array for you.
Judging by your data, it seems it is always a set number of digits. So your
pattern to search for will be easy
ex: (0-9){1,}
Look at the examples given....
>>I got the number of arrays equal to 1. That is correct. But I would like
to parse every IDs number from file to
>>single array or string, that I can use later in PHP code.
>>Do you have any suggestions, example or advice?