News Feed
Jobs Feed
Sections




News Archive
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

Gonzalo Ayuso's Blog: New features in PHP5.4 alpha1

DevShed: Displaying User Comments in a Code Igniter Blog Application

Tiger Heron Blog: Eclipse and PHP

Lorenzo Alberton's Blog: PEAR::Pager Tutorials

DevShed: Working with the XDebug extension's var_dump() function


Community Events









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


composer object functional podcast development introduction zendframework2 framework release interview unittest example opinion testing code tool event api language community

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