PHP - Better way to check variable for null or empty string? Here is the simple PHP function for testing given data is null or empty string. function IsNullOrEmptyString($data){ return (!isset($data) || trim($data)===''); } Email ThisBlogThis!Share to TwitterShare to Facebook
0 comments:
Post a Comment