Friday, 27 July 2012

PHP add and retive values in the list


    $cart = array();
    for($i=0;$i<10;$i++)
    {
    array_push($cart, $i);
    }
   
    foreach($cart as $w)
          {
           echo'value:'. $array[] = $w;
          }

No comments:

Post a Comment