Questions tagged as 'array-associativo'

3
answers

Is it possible to join 2 Arrays where the indexes are the same in PHP?

Good, I have a problem with PHP Arrays. I'm doing an address lookup in google maps, and JSON returns me the following array: Array ( [results] => Array ( [0] => Array ( [address...
asked by 20.12.2017 / 07:38
2
answers

PHP - associative array: check the amount of elements inside a value (that has an array) of a key [closed]

I have an array like this: $array = array( user => "user1", name => "name1", books => "book1", "book2" ); I want to go into books and check the value that elements have inside it, in case it would be 2 (book1 and book2)...
asked by 03.09.2018 / 20:47
1
answer

Order array in PHP for one key value (with fields with integer values) [duplicate]

I have a multidimensional array of type echo "<pre>"; print_r($order_info); exit(); Array ( [0] => Array ( [order_product_id] => 3227 [seller_id] => 27 ) [1] => Array...
asked by 20.11.2018 / 16:11