-3

I would like to get value of "url". How can I do this? Please help! Thanks.

Array(
        [value] => Array
            (
         [url] => http://localhost/azmith/wp-content/uploads/2018/10/hero-img.jpg
               ) )

The complete array is following:

    <?php

       Array(
                ["ID"] => 55,
                ["key"] => "field_5bb500e3e1d6a",
                ["label"] => "Main Banner Image",
                ["type"] => "image",
                ["value"] => Array
(
                        ["ID"] => 63,
                        ["title"] => "hero-img",
                        ["filename"] => "hero-img.jpg",
                        ["url"] => "http://localhost/azmith/wp-content/uploads/2018/10/hero-img.jpg",
                    ),
            );

    ?>
Faa
  • 5
  • 4

1 Answers1

-1

Try this

$url = $yourArrayName['value']['url'];