Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP PHP Functions Introducing Functions PHP Function Arguments

What is a key in php?

?

2 Answers

KEYS in array like your home address for example : $your_country = array("Miguel Nunez house ","another house");

if i want to go to your house first i must enter your country and then search about address (Keys) in this case will be (zero ) just organize data in specific way to get it back at any time

i hope this help :) Hazem

Would you say that a php key is a synonym of php value?

Yes to reach it's value imagine no key in array how you can get specific information if you have 1000 element inside the array you much give every element name or address (key) to reach it

Could you be more specific? If you are talking about arrays, they are organized in key, value pairs.