if (!is_string($notstr)) ++$notstr;
edit:
I think checking for integer is better, if it's just incrementing integer.
I was going to say type hinting but I just realized php's primitive cannot be type hinted.
if (!is_string($notstr)) ++$notstr;
edit:
I think checking for integer is better, if it's just incrementing integer.
I was going to say type hinting but I just realized php's primitive cannot be type hinted.