U
U
Uzair Izha2015-11-30 18:00:15
PHP
Uzair Izha, 2015-11-30 18:00:15

How to extract arrays with its values ​​from a multidimensional array?

I need to split one multidimensional array into separate arrays

Array
(
    [pg_testing_mode] => 1
    [pg_merchant_id] => 5790
    [pg_order_id] => 000000301115054541
    [pg_amount] => 1001
    [pg_lifetime] => 86400

)
Array
(
    [pg_testing_mode] => 1
    [pg_merchant_id] => 5790
    [pg_order_id] => 000000301115054541
    [pg_amount] => 1001
    [pg_lifetime] => 86400

)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2015-11-30
@UZEIR

Need - pull out ...
or

$a = $ar[0];
$b = $ar[1];
$c = $ar[2];

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question