View Feed
PHP Programmers
Community for PHP Programmers : Ask questions, doubts and help each other get better at PHP
299 Members
Join this group to post and comment.
manojsinghrana • Sep 10, 2010

query in php

foreach($delete as $key =>$value)

i am not able to get this code. can someone please tell me what this piece of code actually do. Thank you
It is used in case of associative array,in these type of array each ID key is associated with a value.

For eg if you want to store price of cars in an array then it will be good idea to store it in this way

foreach ($a as $key => $v) {
echo $car[$key];
manojsinghrana • Sep 11, 2010
what is $v in the code above..?

Share this content on your social channels -