<?php const PERMANENT = -1; $max_ages = array_fill(0, 10, 2345); $max_ages[5] = PERMANENT; if (in_array(PERMANENT, $max_ages)) { $max_ages = array_filter($max_ages, function ($max_age) { return $max_age !== PERMANENT; }); }
You have javascript disabled. You will not be able to edit any code.