Hello!
I'm a beginner at PHP and I wonder how I would go about to read a textfile
into an array(hash).
The textfile looks like this:
A/S=age/sex?
A/S/L=age/sex/location?
AA=alcoholics anonymous
AAA=travel club
AAAAA=travel club for alcoholics / american association against acronym
abuse
AAMOF=as a matter of fact
....
It's a file of acronyms, where the first part (before the =) is the acronym
and the second part is the explanation.
I want to read this into an array so that I can access the array with the
acronym and get the explanation. e.g.
$key = 'AAA';
$expl = $acro[$key]
How do I accomplish this in php?
// Anders