Ok I need to echo the current local central time.
I need to be able to store the value of the hour in a variable.
How would I go about doing this.
I have google time on php and get a bunch of conusing syntax.
Ok I need to echo the current local central time.
I need to be able to store the value of the hour in a variable.
How would I go about doing this.
I have google time on php and get a bunch of conusing syntax.
Here is what I have tried and it does not work.
<?php date_default_timezone_set('America/Chicago'); $time = date('G'); switch($time){ case >= '18' and < '22';: echo Good Evening; Break default echo I messed up; ?>