techishard.wordpress.com
Populate a PHP Array in One Assignment
Imagine you are returning an array you need to populate with some values. This is typical: $myArray = array(); $myArray[‘foo’] = $foo; $myArray[‘bar’] = $bar; There are adva…