04-27-2008, 08:05 PM
|
#3 (permalink)
|
|
The Addict
Join Date: Nov 2007
Posts: 264
Thanks: 2
|
It's also something of a bit of help when your doing basic skinning for example
PHP Code:
function load($file,$array){ foreach($array as $key => $val){ ${$key} = $val; } require_once($file); }
with that you do something like this
PHP Code:
$skinCons = array('title'=>'Production Site','content'=>'test content of stuff'); load('skin.php',$skinCons);
the skin file would look like
PHP Code:
<html> <head> <title><?php echo($title);?></title> </head> <body> <?php echo($body); ?> </body> </html>
__________________
"What everyone seems to forget is that while knowledge certainly is something - it's the implementation of knowledge that brings power" - Andres Galindo.
|
|
|
|