/ Published in: PHP
This piece of code will enable you to check if a string ends with a certain string. Particularly handy when checking filetypes, like is something a jpg or not.
The third parameter is optional, if set to true, than the comparison will be case specific.
The third parameter is optional, if set to true, than the comparison will be case specific.
Expand |
Embed | Plain Text