I have a text string that looks like this
$string = "abcdefgh Value : Array ( [0] => Array ( [0] => 30 [1] => 1 ) [1] => Array ( [0] => 25 [1] => 1 ) [2] => Array ( [0] => 44 [1] => 332 ) ) Text : ijklmn";
I want to pull out the array text as a proper PHP array. How can I best do this? I experimented with substr()
, but I could not get it to work.
The reason for this is because I'm using the below which outputs various arrays among all sorts of text.
$jpeg = new PelJpeg($filename);
$exif = $jpeg->getExif();
echo $exif;
Thanks.