<?php $q = range(0, 100); $result = array(); foreach($q as $key => $value) { if (0 === $value % 2) { $result = $key; } } var_dump($result);
You have javascript disabled. You will not be able to edit any code.