Strings helpers
List of functions that works for PHP strings.
is_json
Since PHP 8.3+ this function will throw a deprecated warning message to move to PHP's native function instead (json_validate
) which works similarly.
Check if a variable is a valid json string.
is_json_structure
Similarly than is_json
function but this one also checks if the data inside the string is also a valid JSON data structure (starting with {
or [
):
get_email_domain
Get domain part from email address:
Last updated