$media->extension()

Returns the file extension

  • return (string)

Example

<?php echo $media->extension(); ?>