yes, you can do that.
<?php
echo("
?>
<p>something</p>
<?php
")
?>
or
<?php
$string = "
?>
<p>something</p>
<?php
";
?>
On Apr 26, 12:52 pm, KidBrax <braxton.be... gmail.com> wrote:
> 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>"
--~--~---------~--~----~------------~-------~--~----~
This group is managed and maintained by the development
staff at 360 PSG. An enterprise application development
company utilizing open-source technologies for todays
small-to-medium size businesses.
For information or project assistance please visit :
http://www.360psg.com
You received this message because you are subscribed to the
Google Groups "Professional PHP Developers"
group.
To post to this group, send email to Professional-PHP googlegroups.com
To unsubscribe from this group, send email to
Professional-PHP-unsubscribe googlegroups.com
For more options, visit this group at http:
//groups.google.com/group/Professional-PHP
-~----------~----~----~----~------~----~------~--~---
|