PHP – Pass by Reference or Pass by Value

Passing a variable by reference or by value to a function is a very useful concept for PHP programmers. Normally, when you are passing a variable to a functon, you are passing “by value” which meand the PHP procesor will make a duplicate variable to work on. When you pass a variable to a function [...]

Posted at 6:56 am on November 19, 2007 | leave a comment | Filed Under: PHP | Tagged: , , , | read on

Using The Ternary Operator Instead of “If” Statements

The ternary operator is available in PHP and most other programming languages and usually it causes much confusion for novice programmers because of it’s unusual syntax. If you are going to write, modify or debug code, the ternary operator is invaluable because it allows you to simplify more complex conditionals into one line statements.
The basic [...]

Posted at 6:56 pm on November 17, 2007 | leave a comment | Filed Under: Coding Basics, Optimization, PHP | read on

About

My name is Jessee, I’m a freelance programmer who specializes in Web 2.0 apps written in PHP and Javascript using Ajax.

BRDTracker

Categories