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!
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
$item vs $key vs $value vs $id ? Any one can help please define the difference? Im very confused...
In the video of Todo app of LOOPS in PHP Arrays and Control Structures course, i watched the video several times and im getting there to understand it (i know! :'O ) But what is really driving me crazy is that im not sure when to use $item or $key or $value or $id... Anyone can explain or explain the difference if there is any... , please?
Andrew Patella2,270 Points
I totally understand! there is a lot of data in a short amount of time. I have the same problems! Im glad you figured it out :)
Thanks Andrew Patella, i was just very confused from the video to process all the info.. for some reason my mind didn't get they were all just variables and so all the video was confusing, i re watched several times and read the documentation about it which made it clearer and your explanation confirmed what i understood eventually so really Thanks!