<?php $max = "5"; $max = $max ? $max + 1 : 1; var_dump($max); $max = "5"; $max = $max ? (int)$max + 1 : 1; var_dump($max);
You have javascript disabled. You will not be able to edit any code.