<?php $x = array(0 => 3, 3 => 1, 1 => 'dupa'); var_dump(array_map(function($x) { return (bool) $x;}, $x));
You have javascript disabled. You will not be able to edit any code.