|
Posted by Rami Elomaa on 04/26/07 20:33
KidBrax kirjoitti:
> Is there a way to use html as a value for a php variable while going
> in and out of the php tag?
>
> For example, can you do something like this?
>
> <?php $strHtml = ?>
> <p>somehtml here</p>
> <?php ; ?>
>
> so that the value of $strHtml equals "<p>somehtml here</p>"
>
<?php ob_start(); ?>
<p>some html here</p>
<?php $strHtml = ob_get_clean(); ?>
--
Rami.Elomaa@gmail.com
"Wikipedia on vähän niinq internetin raamattu, kukaan ei pohjimmiltaan
usko siihen ja kukaan ei tiedä mikä pitää paikkansa." -- z00ze
Navigation:
[Reply to this message]
|