- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
try {
@$ids = array_map(function($p)
{
static $index = 0;
$index++;
if (is_numeric($p) && intval($p) == $p)
return intval($p);
else
throw new Exception("The element #{$index} is crap");
},
explode(',', $_COOKIE['integers']));
}
catch (Exception $e) {
exit ("Uh oh! {$e->getMessage()}");
}