PHPFront

Home > PHP > foreach example
The PHP website created by its users!



foreach example


Author
DescriptionAn example of how the foreach() construct can be used.
RatingThis script has been rated 1/5 (18 votes)

PHP Code


<?php
$arr 
= array(1234);
foreach (
$arr as &$value) {
   
$value $value 2;
}

?> 



Rate it: Print Print

Comments


No comments posted yet.

Name
Website
Your comment