array()

Please what are the replacements for the following in Yii2

  1. array()

  2. CDbCriteria()

  3. findByPk()

  1. array() is a PHP variable type. You can use that or [], but there’s no replacement for it.

  2. ActiveQuery

  3. findOne()