I am trying to understand this line in the source of Virtuemart:
<?php
echo $product->images[0]->displayMediaThumb('class="browseProductImage" style="border-radius: 10px; border: 2px solid #8C9622"', false);
?>
It looks like a method is called by a class property (in this case an object/array $product->images[0]
) and that that property is passed as a parameter to the method.
But I cannot find any example of this in the PHP handbook. Can someone please explain or point me to the relevant documentation?