Hi there,
I'm relatively new to Processwire (and PHP!) and have the following question:
I'm currently looping through the images field as shown below:
foreach($page->images as $image) {
$large = $image->size(1200, 795);
echo "{$large->url},";
}
You'll notice that there is a comma after the {$image->url}. I would like to be able to check in the loop if it is the last image and if so, the comma is not shown. Would appreciate the help!
Cheers,
Sev