پی اچ پی

نصب و راه اندازی PHP 7

PHP 7 Up and Running

Slated for release in December, 2015, PHP 7 brings a wealth of new features, bug fixes, and performance improvements. If you're curious, come with me, as I demonstrate what's new!

سطح متوسط 7 جلسه آموزشی 00:28:00 ساعت
01
قسمت 1

Some Vagrant, Some PHP 7

Before we can review what's new in PHP 7, we should first get the proper development environment setup. Luckily, Rasmus has done most of the work for us!

02
قسمت 2

Scalar Typehints

In addition to more complex typehints, in PHP 7, we now have the ability to typehint scalars. Let me show you!

03
قسمت 3

Return Type Declarations

If you wish, you may now declare return types for your interfaces and methods.

04
قسمت 4

Spaceships

The "spaceship" operator is definitely confusing at first to understand. Let's review a few examples to figure it out.

05
قسمت 5

The Null Coalesce Operator

Remember the days of checking whether a variable 'isset', and using the result to respond in one of two ways? Cumbersome would be an understatement! Luckily, with PHP7, the process is much simpler.

06
قسمت 6

Grouped Imports

While not a huge new feature, you now, if you wish, may group your "use" import statements.

07
قسمت 7

Anonymous Classes

Much like anonymous functions, in PHP 7, you now have the ability to create anonymous classes. They're definitely not for everything, but you might find some good use-cases from time to time.

دوره در حال اجرا

این دوره هنوز به پایان نرسیده است و در آینده درس های دیگری به آن افزوده خواهد شد.