note 14159 deleted from language.basic-syntax by philip
| From: | philip@php.net | Date: | Wed, 03 Oct 2001 19:58:22 +0000 |
| Subject: | note 14159 deleted from language.basic-syntax by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-18532@lists.php.net to get a copy of this message | ||
an fyi: it seems you can't go in and out of php mode in a function definition. like, the
following doesn't work:
<?php
function blagh() {
?>
<b>blah blah blah</b>
<?php
}
?>
a workaround is to do:
<?php
function blagh() {
print '
<b>blah blah blah</b>
';
}
?>
... instead. tested under php 4.0.6.