Created
October 16, 2021 14:30
-
-
Save Octagon-simon/08e4469c4464f80905651113253450ca to your computer and use it in GitHub Desktop.
Call the function by binding it to a variable then use json_decode
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 characters
| <?php | |
| require_once 'PHP-Snippets/forms/form-fields-v1.3.php'; | |
| $fields = [ | |
| "fname" => "First Name", | |
| "lname" => "Last Name", | |
| "email" => "Email Address" | |
| ]; | |
| //call the function | |
| $empty = json_decode(checkFormFields($fields, true), true); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment