You are here: Re: can you use html as value for php variable « PHP Programming Language « IT news, forums, messages
Re: can you use html as value for php variable

Posted by Vince Morgan on 04/26/07 17:57

"KidBrax" <braxton.beyer@gmail.com> wrote in message
news:1177605988.744898.320720@u32g2000prd.googlegroups.com...
> 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
$strHtml = "<p>somehtml here<p>";
?>
Don't forget to end the line with a semicolon.
HTH
Vince

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация