Php helper functions to work with strings

Please seeĀ https://github.com/hedii/helpers instead.

 

Here are 7 php functions I have written as an helper to work with strings:

  • contains
  • starts_with
  • ends_with
  • get_string_before
  • get_string_between
  • get_string_after
  • get_string_without

Each function is commented to understand how it works.

Leave a comment