php-oop

PHP: The Reflection API - Great Addition To PHP With Little Use

Hello, Reflection API is great thing out there to manipulate the OOP stuff and looks like most of the developers aren't even aware of that or have never used that. Reflection API Claims: PHP 5 comes with a complete reflection API that adds the ability to reverse-engineer classes, interfaces, functions, methods and extensions....

How to build multi oop functions in PHP5

I have a question about OOP in PHP5. I have seen more and more code written like this: $object->function()->first(array('str','str','str'))->second(array(1,2,3,4,5)); But I don't know how to create this method. I hope somebody can help me here, :0) thanks a lot. ...

PHP doesn't like creating an array of objects..

Hey, I am writing a customer management system in PHP, for use offline (i.e. on the clients computer). I have considered using Java or C# but have come to the conclusion that it is easier to let the browser do all the layout for me, and just have the company install wamp on their computers. Through this interface they will also be able...

array_map/array_walk keeps reporting invalid callback, not found, and/or undefined.

I just wanted a more elegant automated solution to my form validation. On PHP.net I found a cool class script from the SQL injection page. Here it is the code (modified). It's suppose to go through my $_POST array and apply the validation function. class secure { function secureSuperGlobalPOST($v) { $_POST[$v] = htmlspeci...