Here are the top ten articles for the PHP Site! These rankings are live and get reset at the beginning of each month, so check back often to see what your fellow visitors are most interested in!
1. Book Review – Object-Oriented PHP, Concepts, Techniques and Code by Peter Lavin
Object-Oriented PHP by Peter Lavin is a good book for any traditional/procedural PHP programmer who wants to switch to object-oriented PHP and also for programmers who want to switch from PHP 4 to PHP 5.
2. The PHP fread( ), filesize( ) and file_get_contents( ) Functions
We will use the fread( ), filesize( ) and file_get_contents( ) functions to read the contents of a file into a string.
3. The PHP Associative Array
An associative array uses index keys but these keys are not numeric as in the regular array. The keys in an associative array are usually character strings.
4. * PHP Article Index
The easiest way to find articles you are looking for is to check this complete list categorized by subject.
5. The PHP Static Statement
The magic of the PHP static statement is that it allows a function to remember the value of a local variable for the next time the function is called. In this tutorial you will learn how to use the PHP static statement to give a PHP function some memory.
6. The PHP Global Statement
One way to make an outside variable available to a function is to use the PHP global statement. The global statement brings the outside variable into the function code so you can use the variable.
7. How To Increment and Decrement In PHP
One of the most frequently used code in PHP or any programming language is the code that will increment or decrement the value of a variable. This code or expression is used in programs as simple as a page counter or as complicated as credit card processing.
8. The PHP Break Statement
The PHP break statement is placed within the code of a loop statement to cause your program to break out of the loop statement. Below is an example of a break statement that has been added to a loop statement.
9. The PHP fopen( ) and fclose( ) Functions and Modes
The fopen( ) and fclose( ) PHP filesystem functions and their modes are used together to open, and then close, an existing file that is part of your website or to generate a new file.
10. The PHP Array Function
A PHP array is a special type of variable that stores and organizes data. What makes an array variable special is that it can store more than one value; in fact, you can store as many values in one array as you need. It is very easy to create a new array using the PHP array function.
Be sure to visit the PHP Archives
for all the articles!
Editor's Picks ArticlesTop Ten ArticlesPrevious FeaturesSite Map