Check if a string has a specific extension, fails without extension, returns TRUE on NULL extension. This function is dumb and when it encounters filenames with multiple dots it only considers the final extension.
1 | has_extension(s, e)
|
s |
string to check for the extension |
e |
string specifying the extension. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.