public function imageExtension($image)
    {
        $filename = $image;
        $extension = explode('.', $filename);
        $ext = strtolower(end($extension));

        return $ext;
    }
public function imageExtension($image)
    {
        $filename = $image;
        $extension = explode('.', $filename);
        $ext = strtolower(end($extension));

        return $ext;
    }
public function imageExtension ( $ image ) { $ filename = $ image ; $ extension = explode ( '.' , $ filename ) ; $ ext = strtolower ( end ( $ extension ) ) ; return $ ext ; }
Extension of image.

@param   $params (string)
'image' => Source valid image file

@since 1.0.0

@return string
Extension of image .