← Back to all posts

Technical paper 2 : creating a class dynamically

I came across this method called eval() that allows the processing of a string value as a chunk off PHP code. This method might perhaps be useful for the dynamic declaration of a class that I could later instantiate or cast generic objects as.