I need help here, Im new in php and I try to get a clean json output in php, but if I run:
print_r($result)
I got output like this:
Array
(
[0] => Name: Donna D. Westmoreland
[1] => Address: 126 Hanifan Lane
[2] => City: Atlanta
[3] => State: GA
[4] => ZIP: 30303
[5] => Phone: 678-599-9360
...
)
How I get like this:
Array
(
Name => Donna D. Westmoreland
Address => 126 Hanifan Lane
City => Atlanta
State => GA
ZIP => 30303
Phone => 678-599-9360
...
)
Thank you
New contributor
Rahma-R4 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.