E
E
Evgeniy2021-12-01 23:36:55
PHP
Evgeniy, 2021-12-01 23:36:55

How to get image link from php array?

Good afternoon
I'm not friends with php
Please tell me how to display a link to the image [woocommerce_thumbnail] from such an array?

Array ( 
[ID] => 10308 
[id] => 10308 
[menu_order] => 0 
[mime_type] => image/png 
[type] => image 
[subtype] => png 
[icon] => http://site.cool/wp-includes/images/media/default.png 
[width] => 200 
[height] => 200 

[sizes] => Array (  

  [large-width] => 200 
  [large-height] => 200 
  [woocommerce_thumbnail] => http://site.cool/wp-content/uploads/2021/11/paneli-led-200x200.png 
  )
)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
ThunderCat, 2021-12-01
@Zheleznov

https://www.php.net/manual/ru/language.types.array.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question