PROBLEM IN GETTING THE VALUE FROM ARRAY BY USING FOREACH LOOP

Total Post:6

Points:42
PHP 
PHP
 1499  View(s)
Ratings:
Rate this:
how we get the value from array by using foreach loop?
give the example
  1. Post:103

    Points:721
    Re: problem in getting the value from array by using foreach loop

    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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!