I am using PHP functions and experiments.
I personally do not understand that my code is refunding the second part of the statement. If is returning the date ('D') Tue , why does not he run that part? I have tried many things and changed if to it, but there is no benefit. < Div class = "post-text" itemprop = "text"> If you want to know if
& lt; Php date_default_timezone_set ('UTC'); $ Weekdays = array ("Mon", "Mars", "Mercury", "Thunder", "Venus", "Saturn", "Sun"); $ Today = Date ('D'); If (in_array ("Mon", "Mars", "Mercury", "Thunder", "Venus", $ Weekdays) == $ Today) {Echo "This is" ""; Echo today $; Echo "" "Get out of bed and go to work"; } Else {dungo "do whatever you want"; Echo today $; }; ? & Gt;
if someone can tell me what is wrong with syntax?
in_release function.
$ today There is a weekday, you want to do something like this:
$ weekdays = array ("Mon", "Mars", "Mercury", "Thunder", "Venus"); If (in_array ($ Today, $ Weekdays)) {...}
No comments:
Post a Comment