Php array : change the key number with a word -


मेरे पास इस तरह एक सरणी है

  & lt;? php Array ([0] = एरे (['ए'] = & gt; 'डेविड' ['बी'] = & gt; 'पॉल' [0] = & gt; 'टॉम') [1] = & gt; अरे (['ए'] = & gt; 'एंड्रिया' ['बी'] = & gt; 'क्रिस' [0] = & gt; 'मार्क'))? & gt;   

मुझे '0' कुंजी को 'सी' के साथ बदलना होगा। मैं यह कैसे कर सकता हूँ?

पहले बस $ array ['c' सेट करके सामग्री की प्रतिलिपि बनाएँ। '] से $ array [0] और फिर $ array [0] :

  $ array [' c] को हटा दें '] = $ सरणी [0]; सेट नहीं ($ सरणी [0]);    

Comments

Popular posts from this blog

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

sql - PostgreSQL automatically update row at specific date -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -