Jump to content
Larry Ullman's Book Forums

Recommended Posts

Hi to all!

This script works identically without ! empty conditional, am I right? 

if (! empty ($_POST['name']) && ! empty ($_POST['email']) && ! empty ($_POST['comments'])) { }

the same as:

if (($_POST['name']) && ($_POST['email']) && ($_POST['comments'])) { }

 

Thank you!

Link to comment
Share on other sites

 Share

×
×
  • Create New...