Check variable for null or empty string in php


Server side validation check is the most common code we developers do everyday. Checking variable for null or empty string is the most written code.

I have made a custom function to check the variable which returns TRUE or FALSE based on the variable. Check the function below and its usage.



About Author

Entrepreneur & Dreamer

I am a passionate Software Professional, love to learn and share my knowledge with others.

Software is the hardware of my life.


Leave A Reply

CommentLuv badge

Get more stuff like this
in your inbox

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.