extract values from an array that contain key and values separated by any symbol like ,

Wednesday, November 4, 2015

I have an array like below all values are dynamically generated



array(      
[education_provider_state]=>Arunanchal Pradesh,Assam
[e_p_coeducational_type]=>Co-Ed,Girls
)


i want output like



array(      
[education_provider_state]=>array([0]=>Arunanchal Pradesh[1]=>Assam
[e_p_coeducational_type]=>array([0]=>Co-Ed[1]=>Girls
)


I want to get the values of key and values of corresponding key.
How can I achieve this Please somebody help me . Thank You

0 comments:

Post a Comment