variable assignment

Array unpacking in PHP

One of PHP’s less known language constructs is list(), very useful for unpacking indexed arrays. Consider the following simple example denoting its usage: This clean, readable, scalable approach is great for processing data records, unpacking an SQL result row, etc. The only shortcoming, list() cannot be applied to an associative array.… Read the rest “Array unpacking in PHP”