0

How do I get web_hi_res_512.png value.

Array ( 
  [upload_data] => 
    Array ( [file_name] => web_hi_res_51216.png
            [file_type] => image/png 
            [file_path] => C:/xampp/htdocs/elearning/uploads/ 
            [full_path] => C:/xampp/htdocs/elearning/uploads/web_hi_res_51216.png 
            [raw_name]  => web_hi_res_51216 [orig_name] => web_hi_res_512.png 
            [client_name] => web_hi_res_512.png [file_ext] => .png [file_size] => 84.94 
            [is_image]  => 1 
            [image_width] => 512 
            [image_height] => 512 
            [image_type] => png 
            [image_size_str] => width="512" height="512"
    ) 
)
2
  • Which sub array is required, it is not clear from question. Commented Jan 23, 2019 at 7:19
  • $aray['upload_data']['orig_name']; Commented Jan 23, 2019 at 7:25

3 Answers 3

3

If you assign this array to a variable $array:

echo $array['upload_data']['file_name'];
Sign up to request clarification or add additional context in comments.

Comments

2
<?=$array['upload_data']['file_name'];?>

You can get like this

Comments

0
echo $array['1st_array_key']['2nd_array_key'];    

you can access it like below

echo $array['upload_data']['filename'];

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.