<?php $first = 'null'; $last = 2; list($first, $last) = array_map(function($item){ return $item === 'null' ? null : $item; }, [$first, $last]); var_dump($first, $last);
You have javascript disabled. You will not be able to edit any code.