Viewers: in countries Watching now:
Join author Jon Peck as he demonstrates new functionality in PHP 5.5, including generators, the try-catch-finally execution model, and a brand-new password hashing API. A number of existing behaviors, such as the foreach() and empty() functions, have also been updated, and Jon explores what changed and how it can be used. Throughout this course, you'll learn to add new functionality to a simple deck of cards class using these new and updated features, and how to use them for the basis of your own project.
Sometimes functionality needs to be gracely retired. These changes will have very little impact on most people. But it's still important to a small subset of users. Windows XP and Windows 2003 support is now officially removed from PHP. Additionally PHP no longer supports functions that return PHP logo identifiers. Do a quick rep of your code base for the following functions, php logo guid, php easter egg logo guid, php real logo guid, and zend logo guid.
If you have a non English non ASCII code base then you should be aware that case and sensitivity is no longer locale specific. Matching for function, class and constant names now follows ASCII rules which improves support for languages such as Turkish. If you have non ASCII characters in multi byte character sets in your code base, test before deploying. Now for some deprecations. Meaning, that these will be removed in future releases. The first is the original MySQL extension, ext mysql.
Instead use the MySQLi improved extension or PDO MySQL extension, preg replaced/e modifier has been deprecated as well. You should be using preg replace callback function instead. The method international date formatter set time zone ID and function date format set time zone ID are now depricated. Use the method set time zone or the function date format set time zone instead. Mcrypt has a number of functions that have been deprecated as well including mcrypt cbc, mcrypt cfb, mcrypt ecb and mcrypt ofb.
If you're using those, you should be using mcrypt generic and mdecrypt generic instead. That pretty much wraps up the major functional changes in PHP 5.5. In this chapter, I've combined for each with list I've checked function return values with empty, then discussed how boolean and unpacked behavior has been normalized. And finally, reviewed removed, incompatible, and deprecated functionality.
Find answers to the most frequently asked questions about PHP 5.5 First Look .
Here are the FAQs that matched your search "" :
Sorry, there are no matches for your search "" —to search again, type in another word or phrase and click search.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.