Implicit Evaluation with PHP

Implicit Evaluation with PHP Archives: Introspection

·

22 December 2006

Determining if method is a static class method or dynamic object method

Up until PHP5, there was no way to designate a function as static or instantiated. The difference is small, but important. Object methods can only be called through an instantiated object and have access to a class’s member variables. A static class method does not have access to object data but also needs not be […]

continue reading... » 0 Comments

23 August 2006

Official Introspection, Reflect and Implicit Evaluation PHP.net resources

PHP.net actually provides documentation for each of these topics, but finding it can prove difficult. The following is a collection of the links I’ve discovered.

PHP5 Reflection Classes: These are explicit reflection methods specific to PHP5. I’ve never used them.
Object introspection functions: Introspection functions. There are slight differences in some between PHP4 and PHP5.
Zend Debugger Extensions: […]

continue reading... » 0 Comments

15 August 2006

Introspection in PHP

There are two object-oriented functions which I seem to use most when doing any kind of implicit evaluation coding. They are get_object_vars doc and get_class_vars doc. Get_Object_Vars and Get_Class_Vars are very similar in what they do. Given a particular class or object, it will return an array of the variables and their values in that […]

continue reading... » 0 Comments

6 December 2005

What is Implicit Evaluation

This article covers implicit PHP evaluation. There is also an article on traditional PHP evaluation (dynamic evaluation using eval) if you’d prefer.
Evaluation is a technique, which, simply refers to evaluating code at runtime. Microsoft Excel does this when a formula is entered in a cell. Many programming languages offer this functionality through various avenues: Mozilla-based […]

continue reading... » 0 Comments

·