Some of the new features of Yii 2:

 

  • A new set of PHP Namespaces for encapsulating objects
  • New traits for reusing methods in various classes
  • Anonymous functions
  • SPL classes, interfaces, and late static bindings
  • Use of Array syntax [elements] instead of array [elements]
  • Code generated automatically
  • Automatic handling and logging of errors
BY Best Interview Question ON 01 Feb 2019