Why Learn PHP5?

We assume if you are reading this article that youIf that sounds like a lot to learn, it is. But if you
have been convinced to learn PHP. Perhaps youneed any or all of this functionality you will swear
are new to PHP or perhaps you are alreadyby PHP5. And swear at PHP4. If this is what you
experienced with PHP4. Now the question is whyneed don't look for workarounds, download PHP5.
should you do PHP5? After all, PHP4 is quite good.By the way, PHP5 doesn't only increase
Yes, but depending on what you are doing PHP5object-oriented functionality. Because of better
can be better, much better. Just a simpleinternal management PHP5 actually works faster
reminder, we feel that most people who are newthan PHP4 or the Microsoft alternatives, whether
to programming should start with PHP4. Mostor not you are using this new functionality.
people learn to walk before they learn to skate.The world wide web is really world-wide. Yes, and
But many great hockey players learned to icemany parts of the world don't rely on our
skate before they learned to walk.26-letter alphabet. PHP5 supports non-Western
Object-oriented programming is the way to gocharacter sets and Unicode so that you can
when you want to develop sophisticateddevelop web pages for the whole wide world.
applications. Many purists say that people seriousIf you use XML instead of HTML you should
about programming should start withmove to PHP5 for a variety of technical reasons.
object-oriented programming right from theMany sections of PHP5 were rewritten to extend,
beginning. Don't get me wrong. PHP4 providesimprove, and simplify using XML. Additional
many aspects of object-oriented programming.reasons for moving to PHP5 include dozens of
But it is missing many other aspects. Thenew functions and improved MySQL support. On
following is a partial list of functionality missing inthe downside, PHP5 is not supported on Windows
PHP4 but available in PHP5. (This is not the place95. Considering that Microsoft no longer supports
to explain these functions, don't worry if youWindows 95 we should not be too surprised. But
don't know what they mean until you are readyyou can run PHP5 on old computers. I have run
to start using them.) PHP5 enables you to workPHP5 programs under Windows 2000 on a
with destructors, private and protected membercomputer purchased new in August, 1999. And
variables and functions, static member variablesthe entire PHP environment required less than 100
and functions, interfaces, class type hints, abstractMegabytes.
classes and methods, object iteration, and more.