Developer Forums | About Us | Site Map
Search  
HOME > TUTORIALS > SERVER SIDE CODING > PHP TUTORIALS > DEVELOP ROCK SOLID CODE IN PHP: PART 3


Sponsors





Useful Lists

Web Host
site hosted by netplex

Online Manuals

Develop Rock Solid Code In PHP: Part 3
By Amol Hatwar - 2004-01-07 Page:  1 2 3 4 5

Getting the most out of your functions

In Part 3 of this series on developing efficient PHP code in real-world situations, Amol Hatwar discusses how to build the most efficiently functional functions, functions you can use without sacrificing too much performance or manageability. The author focuses on writing reusable functions and covers how to avoid the most common problems associated with this task.

Welcome back. In Part 1 of this series, I discussed some basic PHP design rules and covered how to write secure, simple, platform-independent, speedy code. In Part 2, I opened the world of variables and discussed their usage -- both good and bad practices -- in PHP coding.

In this article you'll see how to use functions in PHP wisely. In every high-level programming language, the programmer can define functions and PHP is no different. The only difference is that you don't have to worry about return types of functions.



View Develop Rock Solid Code In PHP: Part 3 Discussion

Page:  1 2 3 4 5 Next Page: Taking a closer look

First published by IBM developerWorks


Copyright 2004-2017 GrindingGears.com. All rights reserved.
Article copyright and all rights retained by the author.