Best Method of function parameter validation
- by Aglystas
I've been dabbling with the idea of creating my own CMS for the experience and because it would be fun to run my website off my own code base.
One of the decisions I keep coming back to is how best to validate incoming parameters for functions.
This is mostly in reference to simple data types since object validation would be quite a bit more…