Created
May 23, 2024 19:54
-
-
Save petenelson/3d5c76d6c94f6d320a0c216a8ef72c70 to your computer and use it in GitHub Desktop.
Revisions
-
petenelson created this gist
May 23, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ <?php /** * Determines if any of the supplied vars are empty(). * * @param arra ...$vars List of vars. * @return bool */ function any_empty( ...$vars ) { foreach ( $vars as $var ) { if ( empty( $var ) ) { return true; } } return false; }