Using PHP, I'm trying to give each specific text its own variable. I believe this can be achieved by using the explode list function in php. Something similar to the code below:
list($user, $pass, $uid, $gid, $gecos, $home, $shell) = explode(":", $data);
However, the above code separates the text by using a colon (:
). The text I'd like to separate are within quotes, for example "WORD"
. The example text I'd like to separate is as below:
"AULLAH1" "01/07/2010 15:28 " "55621454" "123456" "123456.00"
I'd like the text/numbers AULLAH1
, 01/07/2010 15:28
, 55621454
, 123456
, 123456.00
to all have a specific PHP variable. If possible, I'd like the PHP explode feature to separate the content by a beginning quote (") and an ending quote (").