P
P
pashabomber2014-12-23 10:25:23
PHP
pashabomber, 2014-12-23 10:25:23

How to get the required data from the array?

Good afternoon!
Via <?php print_r($product); ?> brought out an array.
Here is the part I need:


(
[prices] => Array
(
[costPrice] => 4169.00000
[basePrice] => 280474.8947
)
)

I need to echo the contents of basePrice. Tell me how to do it?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max, 2014-12-23
@pashabomber

echo $product['prices']['basePrice']

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question