ajoo Posted December 11, 2014 Share Posted December 11, 2014 Hi, Is there any way to use the inbuilt filter functions in PHP to filter for integer values greater than 256? All examples that I saw had a max_range of 256. Kindly suggest. Thanks. Quote Link to comment Share on other sites More sharing options...
Barand Posted December 11, 2014 Share Posted December 11, 2014 A signed integer will hold up to 2,147,483,648 (ie 2^31) Quote Link to comment Share on other sites More sharing options...
ajoo Posted December 11, 2014 Author Share Posted December 11, 2014 Hi Guru Barand, Does that mean that we can simply use a higher value in the max_range in options array of the filter_var and it would do the trick ? Thanks again ! Quote Link to comment Share on other sites More sharing options...
Solution Barand Posted December 11, 2014 Solution Share Posted December 11, 2014 So long as that "higher value" isn't higher than 2147483648 Quote Link to comment Share on other sites More sharing options...
ajoo Posted December 11, 2014 Author Share Posted December 11, 2014 Yes Sir ! Thanks Loads. Quote Link to comment Share on other sites More sharing options...
Barand Posted December 11, 2014 Share Posted December 11, 2014 My mistake, the highest value is 2147483647 (2^31 - 1) 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.