List Info

Thread: Re: using html as value for php variable




Re: using html as value for php variable
country flaguser name
United States
2007-05-09 13:59:54
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-PHPgooglegroups.com
To unsubscribe from this group, send email to
Professional-PHP-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/Professional-PHP
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )