note 42125 deleted from function.define by nlopess
| From: | nlopess@php.net | Date: | Tue, 04 May 2004 13:28:46 +0000 |
| Subject: | note 42125 deleted from function.define by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-69204@lists.php.net to get a copy of this message | ||
Note Submitter: Daniellehr@gmx.de
----
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>