News Feed
Sections




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

Brandon Savage's Blog:
How To Write A Function In PHP
October 14, 2009 @ 11:12:46

Continuing in his introductory series of posts Brandon Savage has added this new tutorial to his blog introducing and showing how to work with functions.

For new developers, especially developers who have never been programmers before, moving from writing simple scripts to writing functions is a process that takes time. I developed in PHP for years before I wrote a single function. I also never found a comprehensive tutorial on how functions work, or how to write them. There's documentation in the manual, but it's a bit hard to grasp if you're new.

He looks at what they are, how they're used and some of the more technical details like scoping, optional arguments, using globals and passing values by reference.

0 comments voice your opinion now!
beginner function tutorial


blog comments powered by Disqus

Similar Posts

Sameer Borate's Blog: Data filtering and validation using Inspekt

Errumm.co.uk: My first experience in building a FaceBook Application in PHP

php|architect: An overview of the CakePHP framework

PHPMac.com: Building and Installing Apache 2.2.2 and PHP 5.1.3 (or 5.1.4) on Mac OS X 10.4.6

php|architect: Transactional Emails for Fun and Profit


Community Events





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


framework series conference language interview community symfony laravel artisanfiles tool composer library opinion security list voicesoftheelephpant release introduction version podcast

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