Learn what's new in PHP 7

Review all the new features that are coming in PHP 7 and get your app's up to speed.
Rating: 4.5 out of 5 (860 ratings)
31,207 students
Learn what's new in PHP 7
Rating: 4.5 out of 5 (860 ratings)
31,206 students
new features PHP 7
Deprecated features in PHP 7

Requirements

  • Understand the basics of PHP
  • Know about XAMPP or a similar service
Description

PHP7 is the newest edition of the language to hit the server side in 2016. This well established and much loved language is providing significant performance improvements, providing new features and improving security. PHP has always been the goto language when it comes to server side database interactivity and data integrity with simplicity and ease of use.

The first and most prominent speed increase is the PHP7 engines speed which is nearly double the performance of the previous PHP 5.6 engine. This alone should be coveted by developers who don't even need to optimise their code but just to run it in the new engine and see massive performance increases. Wordpress, Joomla and other popular CMS's have been run out of the box with no code changes and huge performance increases have been seen with no optimisation needed at all.

But what about the other features and your script's, Will they work? Well to find out I'll be showing you additional features which may not be that dramatic after all. New features are always fun to learn but some new features will just be a simple parameter being passed into an already existing function. For example the unserialise function will now accept another optional parameter to only unserialise an object that came from a particular class; making it a little more secure. Also as we're on the topic of security and parameters the existing password hash function will no longer accept a salt but rather it will automatically generate a secure salt for you.

The new PHP version is a nice addition to the PHP family with refined features all round. PHP will still be around despite what developers say. It's still currently the best and most secure language for database interaction with PDO, scalar data validation, prepared statements, secure password hashing and salting. It really is still the king pin! Every language has it's place and PHP is firmly settled in on the server side and despite being a Javascript developer it's still is a very established language.

Who this course is for:
  • Exisiting PHP developers who want to learn whats coming
  • Someone who's learnt the basics of PHP and wants to further their understanding
Course content
4 sections • 26 lectures • 3h 19m total length
  • Introduction
    02:48
  • XAMPP PHP7 setup
    03:26
  • Primitive type declarations
    16:35
  • Object type declarations
    13:18
  • Return type declarations
    16:32
  • Null coalescing operator
    07:10
  • Spaceship operator
    10:04
  • Constant arrays using define()
    03:24
  • Anonymous classes
    09:23
  • Unicode codepoint escape syntax
    04:50
  • Functional call context
    05:53
  • Unserialize filtering
    08:50
  • Expectations
    06:56
  • Group use declarations
    08:45
  • Integer division
    02:19
  • Session options
    08:39
  • Random bytes and random int functions
    04:10
  • Revamped regular expression function
    08:05
  • What are Generators?
    05:03
  • Generator Syntax
    12:14
  • Generator Yielding Values
    07:08
  • Generators Yielding Datatypes
    11:14
  • PHP7 Generator New Features
    06:30
  • PHP 7 Depricated features
    11:14
  • Conclusion
    03:55
  • Bonus Lecture: A nice little coupon code
    00:59

Instructor
Technical Instructor
Lawrence Turton
  • 4.5 Instructor Rating
  • 31,761 Reviews
  • 332,572 Students
  • 7 Courses

Lawrence Turton works as a web developer & graphic designer specialising in HTML, CSS, jQuery, UI & UX design. He has previously worked with Fifteendesign producing websites, iPhone and Android apps and started his own agency in 2010 called Elite Web Design. During that time Lawrence has established a wide range of clients from blue chip companies to large corporations. From a young age he was an online instructor and started to work with two of the leading online training specialists Cartoonsmart and Envato. Lawrence always created projects involving designs in Photoshop and bringing his creations to life by coding them with web technologies. This gives him a unique perspective into real world projects from start to finish and a wealth of information for new comers to the web industry.