Since it appears intval only returns 0
if it's not an integer (and I want 0 sometimes in the input), and also since is_int doesn't evaluate string input to tell me if it's an integer (and I'm simply not familiar with what casting a variable as (int)
does if it's not an integer).
What's the correct way to go about this?