replace template file

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
czy11421
Forum Newbie
Posts: 7
Joined: Sat Dec 26, 2009 9:03 pm

replace template file

Post by czy11421 »

I have one php file (search.php) and its html file (search_body.html)

in search.php files, I have
myarray['char_options'] = '<option>en</option><option>fr</option>';

in search_body.html, I have
<select>{char_options}</select>

Then I need to open search_body.html, and replace '{char_options}' with myarray['char_options'], how can I do this ?

Thanks.
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Re: replace template file

Post by daedalus__ »

Post Reply