The advent of PhP5 has brought about a new wave of learning and the upsurge of upgrading the original program. So how do we master PhP5 and what do we need to learn?
I would like to recommend "upgrading to PHP 5" (by Adam Trachtenberg), a book I read a few days ago (I also saw a book review on PHP everywhere today ), I believe it will help you.
The author clearly considers that the traditional phper is familiar with the process-oriented development method of PhP4, but does not know much about object-oriented. In this book, I briefly introduced oo, it paves the way for future chapters. I think if you still don't know much about it, you 'd better find some books that specifically introduce object-oriented knowledge to understand related concepts.
This book is called upgrading, and of course aims to introduce the key technologies for upgrading from PhP4 to PhP5. This book introduces SQLite, mysqli (> = mysql4.1), XML, simplexml, iterator, stream, error-handling (exceptions), soap, emerging technologies such as tidy and reflection in PhP5 may be greatly improved.
I think it is not difficult to upgrade your application from PhP4 to PhP5 if you have mastered the object-oriented ideas and mastered these key new technologies.
P.s. several other constants and functions you may need, such as php_version, phpversion (), extension_loaded (), and function_exists (), can be used to help you determine whether the PHP version has been loaded with extensions, whether a function exists. It can be used when PHP versions are required to process the function separately.
The CHM version of this book has been downloaded on the Internet. Please search for it by yourself.