Common PHP String Functions, Check is Empty, Split by Character, Length

Below are some common and useful PHP string functions.

PHP check if string is empty

PHP string split by character

PHP check if string contains

PHP check string length

PHP replace part of a string

PHP get substring of a string

PHP insert insert a string into another string at position

PHP trim spaces

Trim leading and trailing spaces from a string