Out of the box algorithms
| From: | Stefan Rusterholz | Date: | Wed, 06 Feb 2002 09:33:13 +0000 |
| Subject: | Out of the box algorithms | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-83685@lists.php.net to get a copy of this message | ||
Hi
As part of a class I'm building I need to parse a file where following line occurrs:
users: username "username with spaces" anotherusername
I need to parse that into a structure like
$users = array(
'username',
'username with spaces',
'anotherusername'
);
The issue is the string after the : (the other part is relativly easy as you could think)
Is there anyone having a parsing algorithm for that just out of the box? It would save me reinventing the wheel ;-)
TIA
stefan rusterholz