php - Convert some values from two dimensional array to one dimensional array -


  सरणी (आकार = 2) 0 = & gt; सरणी (आकार = 4) 'id_tax' = & gt; स्ट्रिंग '1' (लंबाई = 1) 'दर' = & gt; स्ट्रिंग '21 .000' (लंबाई = 6) 1 = & gt; सरणी (आकार = 4) 'id_tax' = & gt; स्ट्रिंग '2' (लंबाई = 1) 'दर' = & gt; स्ट्रिंग '15 .000 '(लम्बाई = 6)  

जो कुछ मैं चाहता हूँ वह सरणी है

  1 = & gt; 21 2 = & gt; 15  

ऐसा करने के लिए सबसे अच्छा काम क्या है?

इसे आज़माएं:

<पूर्व> $ newArray = array (); विदेशी मुद्रा ($ मान $ मान) {$ newArray [$ value ['id_tax']] = $ मान ['दर']; }

Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -