Showing posts with label phpjs. Show all posts
Showing posts with label phpjs. Show all posts

Friday, May 4, 2012

Javascript equivalent of PHP"s list()


Really like that function.




$matches = array('12', 'watt');
list($value, $unit) = $matches;