> users: username "username with spaces" anotherusername
>
> I need to parse that into a structure like
> $users = array(
> 'username',
> 'username with spaces',
> 'anotherusername'
> );
try preg_match
i think the expression could look something like this:
'/users:\s*(^\s+)"(.*
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
2 matches
Mail list logo