| Printable Document Generation with PHP |
|
|
|
| Written by Chetankumar Akarte | |||||||||
| Tuesday, 13 March 2007 | |||||||||
Page 5 of 7 Modifying contentsHere we just replace all the placeholders in our template file and generate our modified output file as ‘output.rtf’. for that purpose we are using function modifier($vars, $doc_file).This function takes two parameters the first, $vars, is an array of key/value pairs representing the placeholder and value for that placeholder. The second parameter, $doc_file, represents the template file to populate.
(Code 1:- test.php) |
|||||||||
| Last Updated ( Tuesday, 04 September 2007 ) | |||||||||