note 42125 added to function.define
| From: | Daniellehr at gmx dot de | Date: | Tue, 04 May 2004 09:25:39 +0000 |
| Subject: | note 42125 added to function.define | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-69191@lists.php.net to get a copy of this message | ||
Someone asked me if you can define variables or defines after outputting them.
I don't know for what he needed, but I made the snippet here:
<?php
for($i=0;$i<=1;$i++) {
if($i!=0) {
echo START;
} else {
define('START', time());
}
}
?>
And it works.
Attention:
There must be an 'else'. Otherway there occures an error.
Maybe somebody needs it.
Greets from Germany
Yours, Daniel Lehr aka LLCoolDannY <http://www.llcooldanny.de.vu>
----
Manual Page -- http://www.php.net/manual/en/function.define.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42125
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42125&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42125&report=yes
Search -- http://master.php.net/manage/user-notes.php