I have an array:
$ar = array(
'color' => '4',
'files' =>
array (
0 =>
array (
'id' => '481',
'this' => '154',
'format' => '23',
'attach' => '64a73c4aa9c3409f230e54b283baa221.webp',
),
1 =>
array (
'id' => '482',
'this' => '154',
'format' => '22',
'attach' => '54afc3dce6cd36c763844d9a3e4a3639.webp',
),
2 =>
array (
'id' => '483',
'this' => '154',
'format' => '23',
'attach' => 'e83f3103b7f25d52262330a4b5652401.webp',
),
)
);
..and i have a string "files.0.attach". How i can get value from $ar['files'][0]['attach'] by this string?
Explode the string by dot, and ....