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

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -