0

In below code,I want to save only the name in DB. But How do i get name only from below array. Please suggest me a solution to get a name

Array
(
    [0] => Array
        (
            [name] => boy_1_6.jpg
            [type] => image/jpeg
            [tmp_name] => /tmp/phpti6eaW
            [error] => 0
            [size] => 33454
            [file] => boy_1_6.jpg
            [url] => http://localhost/magento220/pub/media//boy_1_6.jpg
            [previewType] => image
        )

)
Jaisa
  • 2,606
  • 10
  • 53
  • 117

1 Answers1

2

if the array store is variable $arr

than access name just like below

$arr[0]['name']
Jigs Parmar
  • 2,438
  • 1
  • 14
  • 33