How can I convert the following nested array into xml file? What will the XML file look like?
Array(
array('name'=>'Jone Smith','phone'=>'416-689-9865'),
array('name'=>'Jane Ling','phone'=>'658-985-5222')
);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Other alternate is to use
array_walk.The array_walk_recursive() function runs each array element in a user-made function. The array’s keys and values are parameters in the function. The difference between this function and the array_walk() function is that with this function you can work with deeper arrays (an array inside an array)