I have a script that looks into a file and replaces certain items, with their variable equivilants.
Hence:
%%%TEST%%%
is replaced with $test
$content = str_replace("%%%test%%%", $test, $content);
Wondering if there is a more efficient way, perhaps so that I don't have to define each one in the PHP file.
Efficiency is also key.
Any suggestions? Am I going about this the best way already? Or is there an even better way?