Voting

: six minus four?
(Example: nine)

The Note You're Voting On

n0dalus
20 years ago
If a file has more than one 'file extension' (seperated by periods), the last one will be returned.
For example:
<?php
$pathinfo
= pathinfo('/dir/test.tar.gz');
echo
'Extension: '.$pathinfo['extension'];
?>
will produce:
Extension: gz

and not tar.gz

<< Back to user notes page

To Top