Hello guys :)
I got this code:
codeviewer.org/view/code:b6f
It simply validates a date, but ends the script if a error occurs (exit ()).
Now i gonna put this same code in a single function that returns false on error:
codeviewer.org/view/code:b70
I dont want to use "if/else". I want to return false on error and stop execution of the others things, something like this:
codeviewer.org/view/code:b71
Is that possible ?
Thank you.