note 57235 added to control-structures.alternative-syntax
| From: | phparabia at php-arabia dot com | Date: | Tue, 27 Sep 2005 22:39:03 +0000 |
| Subject: | note 57235 added to control-structures.alternative-syntax | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-95900@lists.php.net to get a copy of this message | ||
You Can us this Control Structures as a dynamic greeting in your Page like this code example:
<?php
$a=date(H);
$b=date(i);
$c=date(s);
if ($a <= 11):
echo "Good Morning";
echo "...it's NOW : ".$a.":".$b.":".$c;
elseif ($a >= 12):
echo "Good Afternoon";
echo "!!! it's NOW ".$a.":".$b.":".$c;
else:
echo "The Time is Wrong? <b>Possible!!!</b>....";
endif;
?>
----
Manual Page -- http://www.php.net/manual/en/control-structures.alternative-syntax.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57235
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57235&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57235&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57235&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57235&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57235&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57235&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57235&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57235&report=yes
Search -- http://master.php.net/manage/user-notes.php