I need transform string to array
<p>I have string variable. It can be:<br>
    $string = '["image11.jpg"]';<br>
Or:<br>
    $string = '["image11.jpg","image54.png"]';<br>
Or:<br>
    $string = '["image11.jpg","image54.png"]';<br>
Or:<br>
    $string = '["image11.jpg","image54.png","dfgr.rar"]';<br>
And so on.<br>
I need this variable as array, for example:<br>
    $arr[0] = 'image11.jpg';<br>
Or:<br>
    $arr[0] = "image11.jpg";<br>
    $arr[1] = "image54.png";<br>
Or:<br>
    $arr[0] = "image11.jpg";<br>
    $arr[1] = "image54.png";<br>
    $arr[2] = "dfgr.rar";<br>
And so on.<br>
Is there optimal code for that?<br></p>
