[plug] PHP Arrays

Jason :) jas at whatever.iinet.net.au
Sun Sep 10 20:39:56 WST 2000


The syntax you are using is right. You can get the value of an element in an
array with the command

$value=$array["element_name"];

check that you have typed the name of the array and the element right. If it
still doesn't work, send us some of the code you are using (ie. code to
insert values into and get data from the array)

hope this helps

Jason :)

-----Original Message-----
From: skribe [mailto:skribe at amber.com.au]
Sent: Sunday, 10 September 2000 5:13 PM
To: plug at plug.linux.org.au
Subject: [plug] PHP Arrays


Does anyone know how I can extract a specific element from a string indexed
array in PHP?

I would have thought that $array_name["element_name"] would do it but it's
not working for me.  I'm trying to extract out the value from the element
name.  Any suggestions?

TIA

skribe
	Purity:                           62.0%
	Corruption:                    38.0%
	Insanity:                        36.3636363636364%
	Weirdness factor:           31%
	Experience Level:           JonKatz Wannabe
	Medieval Career:            Black Knight






More information about the plug mailing list