From a5bf2834ad5c63f1edefa80edbd93fc3df148720 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Thu, 1 May 2014 16:28:02 +0400 Subject: [PATCH] Fixes #3315: added new PHP features reading list to upgrading from 1.1 guide --- docs/guide/intro-upgrade-from-v1.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/guide/intro-upgrade-from-v1.md b/docs/guide/intro-upgrade-from-v1.md index 871b992..fdabb50 100644 --- a/docs/guide/intro-upgrade-from-v1.md +++ b/docs/guide/intro-upgrade-from-v1.md @@ -19,6 +19,24 @@ the [Starting from Basic App](start-basic.md) chapter to learn how to install Yi create new extensions or turn your existing 1.1 extensions into 2.0, please refer to the [Creating Extensions](extend-creating-extensions.md) chapter. +PHP +--- + +Yii 1.1 was developed to be compatible with PHP 5.2. Yii 2.0 minimum requirement is PHP 5.4 that is a huge improvement +in both performance and features. And since these features are actually used you need to get yourself familiar with them. +Here's the list: + +- [Namespaces](http://php.net/manual/en/language.namespaces.php). +- [Anonymous functions](http://php.net/manual/en/functions.anonymous.php). +- Short array syntax. It's easy, just use `[` and `]` instead of `array(` and `)`. +- Short `echo` in form of `