
Venkok
Members-
Content Count
7 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout Venkok
-
Rank
Newbie
-
Hello! Please explain to me how gender validations from scripts 2.3 differ from the nested one in script 2.4. I have this in 2.3 (updated with NULL coalescing operator while practicing Pursue section): $gender = $_REQUEST['gender'] ?? NULL; if ($gender == 'M') { $greeting = '<p><strong>Good day, Sir!</strong></p>'; } elseif ($gender == 'F') { $greeting == '<p><strong>Good day, Madam!</strong></p>'; } else { $gender = NULL; echo '<p class="error">Gender must be either "M" or "F"!<
- 1 reply
-
- nested
- null coalescing operator
- (and 6 more)
-
Venkok started following Script 2.5. ! empty question