Hudzilla.org - the homepage of Paul Hudson
Contents > Simple variables and operators Wish List | Report Bug | About Me ]

3.16     Next chapter

This is NOT the latest copy of this book; click here for the latest version.

Although we've yet to look at arrays, we need to stop the current foray into variables and instead look at functions. The reason for this is that arrays generally require functions to be of much use, so you need to understand how functions work before you try your hand at arrays. Do not worry - functions are great fun, and are also very important.





<< 3.15 Further reading   4 Functions >>
Table of Contents
Want to see this stuff in print? PHP in a Nutshell takes the core topics covered here, adds in thousands of edits from the editorial team and myself, and combines them to make an unbeatable reference for PHP programmers at all levels.



My latest book has hundreds more tips on how to use PHP, Apache, and MySQL, plus Perl, Python, shell scripts, performance tuning, and more!



Top-right shadow
 
Bottom-left shadow Bottom shadow

Comments from other readers
TxtEdMacs - 13 Oct 2008

I cannot give you the definitive answer, but from my admittately limited experience I was surprised how many commands were valid under both version 4 (I happened to use 4.3.10 on some coding) and version 5. If there is a question go to the manual: http://www.php.net/manual/en/ and then run a search for the command you are wondering about. Here is one command I used quite a bit: "preg_match (PHP 3 >= 3.0.9, PHP 4, PHP 5) preg_match -- Perform a regular expression match".

While lacking the experience, I suspect this will not hold for OO structures, there you should expect breakage of your code if run under version 5.

askjames01@yahoo.com - 13 Oct 2008

Before i ask question i would like to thank the author of
this book and this site, this is really great site...
beutiful it really helps people...
God bless and please keep helping others... thru this...

---> Here is my question!
I wonder if the older commands of the php like version
4.3.10 still works with php version 5.0.3, what i mean
all of the older commands from previous versions...

Thank you for reply, in advance...

-askjames



Add comment
Please note that by posting a comment here you are committing it to the public domain. This is important so that others can make use of your code themselves, and also so that I can incorporate helpful notes directly into the main text. Comments are limited to 2000 characters in length.

If you are reporting an error in the content, please tell me directly.

Your name/email address:
Your comment:
 
Now, in order to verify that you're a real person, please answer this simple question: what is six plus six?
The answer is:
(please write in
numbers, eg 19)


Top-right shadow
 
Bottom-left shadow Bottom shadow