SirChick Posted November 21, 2007 Share Posted November 21, 2007 If you have an is numeric in an if statement does it require an extra bracket like so: If((is_numeric($SellTableStaff)) && $SellTableStaff > 0 && $SellTableStaff != '') or is it just: If(is_numeric($SellTableStaff) && $SellTableStaff > 0 && $SellTableStaff != '') ? Quote Link to comment https://forums.phpfreaks.com/topic/78273-solved-is-numeric/ Share on other sites More sharing options...
revraz Posted November 21, 2007 Share Posted November 21, 2007 2nd one Quote Link to comment https://forums.phpfreaks.com/topic/78273-solved-is-numeric/#findComment-396099 Share on other sites More sharing options...
kratsg Posted November 21, 2007 Share Posted November 21, 2007 if(is_numeric($SellTableStaff)) If you wanted the other way around, using an "!" if(!is_numeric($SellTableStaff)) Quote Link to comment https://forums.phpfreaks.com/topic/78273-solved-is-numeric/#findComment-396101 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.