Home > DeveloperSection > Forums > problem in getting the value from array by using foreach loop
sourabh kumar
sourabh kumar

Total Post:6

Posted on    March-01-2011 3:22 AM


 1 Reply(s)
 1296  View(s)
Rate this:
how we get the value from array by using foreach loop?
give the example

Amit Singh

Total Post:103

Posted on    March-01-2011 3:35 AM

hi guys,
in php, we assign the array as
$strName = array( "rajiv", "david", "taylor", "mark" );

and get the value by using the foreach loop as
foreach($name as $strName)
echo $name ."</br>;

Modified On Mar-01-2011 03:35:59 AM

Don't want to miss updates? Please click the below button!

Follow MindStick