DevShed: PHP 5 Helpers: Calling Methods Out of Object Scope

Courtesy PHPDeveloper.org  Mon, 07/27/2009 - 11:38

In this new tutorial from DevShed today they continue their series looking at making helper classes for your applications.

This time they're focusing on using methods without needing to create an object first - static methods.

The methods of the class that I [just] mentioned were declared implicitly dynamic, even though it's perfectly possible to call them statically, and the PHP engine won't raise any errors about this process.

However, it would be much better to declare...


 

More related items

DevShed: Checking Boolean Values with Filters in PHP 5
DevShed continues their look at filtering in PHP5 applications with this third part covering checks on boolean values. As I said before, the filter extension can be used for more than...

DevShed: The Destruct Magic Function in PHP 5
DevShed has posted the second to last part of their tutorial series looking at the magic functions in PHP. This time they focus on the destruct function, a method that is fired off when an...

DevShed: The Autoload Magic Function in PHP 5
DevShed has posted the latest article (the last) in their series looking at the "magic functions" that PHP has to offer. This time they take a closer look at the autoload functionality. ...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com