HZR
09-27-2002, 10:59 AM
Don't laugh at me, this is probably a very easy question, but I started with PHP two days ago so...
I want to know PHP's equivialant to document.write. I know about echo and print but they're not what I search for. Lets say I would do something like this in JavaScript; loop through all headings. I would do something like:
for(i = 1; i < 7; i++)
document.write('<h' + i + '>heading' + i + '<h' + i + '>')
If I use echo or print it would write out all the "'<' +" and so on
Hope you understood that.
BTW, maybe it's echo or print (thet're the same thing right?) but I shall do it in another way.
I want to know PHP's equivialant to document.write. I know about echo and print but they're not what I search for. Lets say I would do something like this in JavaScript; loop through all headings. I would do something like:
for(i = 1; i < 7; i++)
document.write('<h' + i + '>heading' + i + '<h' + i + '>')
If I use echo or print it would write out all the "'<' +" and so on
Hope you understood that.
BTW, maybe it's echo or print (thet're the same thing right?) but I shall do it in another way.