FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Verifying time in php
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Verifying time in php [message #179384 is a reply to message #179382] Sun, 14 October 2012 16:22 Go to previous messageGo to previous message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma:
Senior Member
Am 14.10.2012 17:50, schrieb Michael Fesser:
> .oO(houghi)
>
>> I am aware of those. However I can not figure out how to do a check on
>> all of them, without getting lost in if statements.
>>
>> See below where '-' means empty, 1 means any digit(s) and A means any no
>> digit(s). I have not shown all options.
>> [...]
>
> I wouldn't care too much about invalid inputs. Instead I would just take
> what I get and see what I can do with it.
>
> So I would explicitly cast all values to int (invalid or empty values
> will become 0), then just do a simple range check on all of the three
> values and then do the math.

+1

/Str.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Curl chmod file transfer problem...
Next Topic: test
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 06:12:27 GMT 2024

Total time taken to generate the page: 0.04569 seconds