How to validate a variable is phone number in Php?

In this post, This function checks whether a variable is phone number or not.

How to validate a variable is Email in Php?

In this post, This function checks whether a variable is email or not.

How to validate a variable is IP address in Php?

In this post, This function checks whether a variable is IP or not.

How to validate value is Boolean in Php?

In this post, This function checks whether a variable is of type boolean or not.