php mass assign multidimensional array code example Example: php array $array = ['cheese', 'ham', 'potato']; var_dump($array);