How to do I get all strings enclosed in a pair of double-quotes by using php, I want to get them in the following string,
$str = 'a:2:{i:1;a:4:{i:1;s:4:"2000";i:2;s:8:"10th STD";i:3;s:9:"Full Time";i:4;s:24:"State Board of Education";}i:2;a:4:{i:1;s:4:"2003";i:2;s:8:"12th STD";i:3;s:9:"Full Time";i:4;s:24:"State Board of Education";}}';
I want output as follows
2000
10th STD
Full Time
State Board of Education
I tried the following code but output comes only 2000
<?php
$str = 'a:2:{i:1;a:4:{i:1;s:4:"2000";i:2;s:8:"10th STD";i:3;s:9:"Full Time";i:4;s:24:"State Board of Education";}i:2;a:4:{i:1;s:4:"2003";i:2;s:8:"12th STD";i:3;s:9:"Full Time";i:4;s:24:"State Board of Education";}}'
if (preg_match('/"([^"]+)"/', $str, $m))
{
print $m[1];
}
else
{
}
<?
Please suggest me how to do it, which function should I used to get my output?