displaying {body}

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
stevestark5000
Forum Commoner
Posts: 61
Joined: Thu Jan 27, 2011 12:08 am

displaying {body}

Post by stevestark5000 »

I got a template with {BODY} in it but I don't know to write the code for body. for example, {body} would display something at that body section but i don't know to display that something. any ideas?
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: displaying {body}

Post by Jonah Bron »

str_replace()?

Code: Select all

$html = str_replace('{BODY}', 'something else', $html);
http://php.net/str-replace
stevestark5000
Forum Commoner
Posts: 61
Joined: Thu Jan 27, 2011 12:08 am

Re: displaying {body}

Post by stevestark5000 »

thank you
Post Reply