<?php function result(){ return ['foo', 'bar']; } list($a, $b) = result(); $x = Array($a => $b); var_dump($x);
You have javascript disabled. You will not be able to edit any code.