xProteuSx Posted December 13, 2007 Share Posted December 13, 2007 How would I go about limiting a value to a numerical string? Is there a predefined function for this? Quote Link to comment Share on other sites More sharing options...
revraz Posted December 13, 2007 Share Posted December 13, 2007 is_numeric() Quote Link to comment Share on other sites More sharing options...
sKunKbad Posted December 13, 2007 Share Posted December 13, 2007 or use (int) Quote Link to comment Share on other sites More sharing options...
CMC Posted December 13, 2007 Share Posted December 13, 2007 Or a regular expression, but revraz's post is the easiest way Quote Link to comment Share on other sites More sharing options...
xProteuSx Posted December 13, 2007 Author Share Posted December 13, 2007 Thanks. I've got is_numeric() working now. Quote Link to comment 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.