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

Total Post:6

Points:42
Posted on    March-01-2011 3:22 AM

 PHP PHP 
Ratings:


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


Amit Singh

Total Post:103

Points:721
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