Name: joba Date: May 3, 2007 at 06:44:54 Pacific Subject: Array: keys and values OS: Win Vista Premium CPU/Ram: Intel centrino, 2gb ram Model/Manufacturer: HP
Comment:
If an array looks like this: $answers = array( 'gender', 'age', 'income', 'home', 'time_online', 'it_knowhow', 'online_buys')
An array key can never be NULL, otherwise it would completely defeat the point of having an array. If you don't define the key (as in your example above), it will automatically be created starting at 0. Giving you the keys as stated by Laler
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE