Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Stephan Elinghaus <221015.6.seli@spamgourmet.com> Newsgroups: comp.lang.php Subject: Re: Check for military time Date: Thu, 22 Oct 2015 13:16:33 +0200 Lines: 15 Message-ID: References: X-Trace: individual.net j5H9iXyoKNlG5J8xPJdI/QXIxyoVHrD2t7eikDkhAne2sy/ml3 X-Orig-Path: none.inv!not-for-mail Cancel-Lock: sha1:Ph7UgTncriwYcVmgV5k0+1o4X/s= User-Agent: slrn/1.0.1 (Linux) Xref: csiph.com comp.lang.php:15729 Am 2015-10-20 hat Derek Turner geschrieben: > Is there a quick and dirty way to check that > > substr($string, 0 ,3) is a valid military time, ie. 0000-2359? Maybe this works for you: -- [no signature today]