<?php $in = [0]; $out = array_filter($in, function(&$v) { $v = 1; return 1; }); var_dump($in, $out);
You have javascript disabled. You will not be able to edit any code.