Short check of empty values
Most php newbies do endless empty()/isset() constructs to check if all fields have value. How about we use this?
if(in_array("", $_POST)){
// all fields are required.
}
Written by Ka-lin
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#