How to generate an associate array from text in PHP?

QuestionsHow to generate an associate array from text in PHP?
sethbeckerman5 Staff asked 11 years ago

I have been creating arrays from plain text by using comma (or any other special character) with the help of php's function like

But How can I create an associative array? Like how can I create an array like

from a plain text like "Peter=>35,Ben=>37,Joe=>43"


View on Stack Overflow