News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DevShed:
Building Helpers in PHP 5
July 21, 2009 @ 07:56:28

DevShed has started up a new series of tutorials today with this first part of their "helpers in PHP5" series. They look at some of the first steps into creating these helpers and the handy methods inside.

Despite its seeming simplicity, building helpers can be a pretty challenging process, particularly for beginners whom are just starting to implement the object-oriented paradigm in PHP 5. [...] I'm going to introduce you as gently as possible to creating different types of helpers, which hopefully will make you understand the basis of this process and encourage you to create your own.

They start off with a text helper that gives you methods to change newlines to <br> or <p> tags. They extend the class a bit more by adding in a few other methods - convert newlines to <div> tags, and uppercase/lowercase/uppercase the first letter in a string.

0 comments voice your opinion now!
tutorial text helper


blog comments powered by Disqus

Similar Posts

The Bakery: Four New Articles - Load Balancing, Request Info, UUID Behavior & Upload Thumbnails

SitePoint PHP Blog: PHP and WMI Dig deep into Windows with PHP

EchoDitto Labs Blog: How to Configure Eclipse PDT with Zend Server Debugger on MAMP for Drupal

Zend Developer Zone: Reading Access Databases with PHP and PECL

Matthew Weier O'Phinney's Blog: Creating Re-Usable Zend_Application Resource Plugins


Community Events





Don't see your event here?
Let us know!


tool library package version release composer update framework mvc voicesoftheelephpant series security language community podcast opinion symfony laravel introduction interview

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework