Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Echo

Status
Not open for further replies.

PhoenixDown

Programmer
Jul 2, 2001
279
CA
Is there any way to do echo print statements without the use of 'echo "something";'?

Thanks in advance! :)
 
depends how you mean, print "something"; ?

printf(" lots and lots of things");
sprintf("even more stuff");

echo "
a
whole
list
of
stuff
";


etc etc ....? puzzled ***************************************
Party on, dudes!
[cannon]
 
Yeah, I want to print something to a web page, but just HTML. I don't want to add backslashes to quotes. Kind of annoying, IMO.

Any suggestions?

I'm sorry that my previous post was hard to understand, but now you know what I want to do. :)
 
you can mixup html and php

<table>
<tr>
<?
$array=array(1,2,3,4,5);
for($i=0;$i<sizeof($array);$i++){?>
<td class=text><?=$array[$i]?></td>
<?}?>
</tr>
</table> Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top