Thread: for loop
View Single Post
Old 10-10-2015, 02:13 AM   #2
pashminawear
Registered User
 
Join Date: Oct 2015
Posts: 10
In which language?

Javascript:
for (i = 0; i < items.length; i++) {
text += items[i] + "<br>";
}

PHP:
for ($i = 0; $i < count($items); $i++) {
$text .= $items[$i] . "<br/>";
}
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
pashminawear is offline   Reply With Quote