The foreach Statement
The foreach statement is used to loop through arrays.
For every loop, the value of the current array element is assigned to $value (and the array pointer is moved by one) – so on the next loop, you’ll be looking at the next element.
foreach (array as value)
{
code to be executed;
}
Example
The following example demonstrates a loop that will print the values of the given array:
<html>
<body>
<?php
$arr=array(“one”, “two”, “three”);
foreach ($arr as $value)
{
echo “Value: ” . $value . “<br />”;
}
?>
</body>
</html>
and output is
Value: one
Value: two
Value: three
Do you know of anywhere else that I can get some information about %keyword%? I have come across your post %title% and it has given me some great ideas, but I am looking for some more information about %keyword% any ideas?
xtmq3v7mtjgyhryv
just learn it and thanks the post again
been following your blog for some days now and i should say i am starting to like your post. and now how do i subscribe to your blog?
been following your blog for some days now and i should say i am starting to like your post. and now how do i subscribe to your blog?
goodto see you make postings on this issue, I should bookmark this web site. Just keep up the good job.
Great write-up, I’m a enormous believer in commenting on blogs and forums to assist the web log authors know that they’ve extra a specific thing of value towards the internet!
when i learning and i just google blog,blog is a good place to learning,i am glad to found your blog
Very good site, where did you come up with the knowledge in this post? I’m happy I found it though, ill be checking back soon to see what other articles you have.