Ok Here is what i thought would work
But it wont work for nothing :/ i think its the str_ireplace i think the ending value isnt correct but any help would be a great help
PHP:
<?php
################################################
# Template System - Created By GarettMcCarty
################################################
class template {
public $value = array(); // holds values
public function add($name,$value)
{
$this->value[$name] = $value; // Stores array
}
public function filter($values)
{
foreach($this->value as $replace => $data) // gets Arrays Of $value
{
$values = str_ireplace("%".$replace."%", $data, $this->value);
}
return $values;
}
public function display()
{
return ($this->filter($this->value)); // returns filtered Values
}
}
?>
But it wont work for nothing :/ i think its the str_ireplace i think the ending value isnt correct but any help would be a great help