ollie007 Posted June 21, 2009 Share Posted June 21, 2009 ok how do i add html to php source.... do i do an echo or print or add a joining variable and how much html can i add to one line?? $var= 'html'; $var.='extra html'; return $var; Link to comment https://forums.phpfreaks.com/topic/163110-adding-html-to-php-source/ Share on other sites More sharing options...
trq Posted June 21, 2009 Share Posted June 21, 2009 do i do an echo or print or add a joining variable Its entirely up to you. and how much html can i add to one line?? There is no solid limit. I guess it would depend on your machines memory but in reality, you would run out of text before you ran out of memory. Link to comment https://forums.phpfreaks.com/topic/163110-adding-html-to-php-source/#findComment-860581 Share on other sites More sharing options...
phant0m Posted June 21, 2009 Share Posted June 21, 2009 well, you need to print the text at some time. "return" will not print your html. Also, you can close you PHP area with ?>, then write some html, and reopen PHP. This also works with if, while etc. Link to comment https://forums.phpfreaks.com/topic/163110-adding-html-to-php-source/#findComment-860600 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.