re: Writing Beautiful Code VIEW POST

TOP OF THREAD FULL DISCUSSION
re: If you want to make your code even more beautiful: $validateEmail = filter_var($emailAddress, FILTER_VALIDATE_EMAIL); $validateMessage = strlen($...
 

This will not work in a real project, most likely you will have to provide a message on why exactly the invalidation failed.

One liners are always on my radar on "smelly code", they usually lead to nasty problems.

code of conduct - report abuse