PHP helper functions – checking if string is ending or starting with a subscring

Something very basic but really useful when not using a framework 🙂

You will already find it defined in Laravel 5.5 as starts_with() / ends_with()

If you like this and find it useful please consider sharing it! Cheers!Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn