Categories
What does this [$var] operator do?
This code generates Gii
public function forCategory($id) { $ids = [$id]; $childrenIds = [$id]; ... }
Answer the question
In order to leave comments, you need to log in
Creates an array with one element $var.
The "new" way to define an array as of PHP 5.4
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question