How PHP handles multiple inclusions of the same file?
| From: | Gambler ZG | Date: | Sun, 08 Aug 2004 22:10:34 +0000 |
| Subject: | How PHP handles multiple inclusions of the same file? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-193150@lists.php.net to get a copy of this message | ||
Let’s say I have function named "render", which looks like this:
<?php
function render($template, $vars){
extract($vars);
include("templates/".$template.'.php');
}
?>
I also have template "some_tmplt.php", which I need to render 100 times. Will PHP read, parse and compile this file 100 times, or will it "remember" file's content?