array 1:
array (
1 => "apples"
2 => "ate"
)
array 2:
array (
1 => "large succulent red things"
2 => "consumed"
}
original string
fred dynage ate some apples
needed string
fred dynage consumed some large succulent red things
I hope you get the jyst of what I am trying to do...
while ($i < ($this->total_assigns)) {
$page_content = str_replace($this->tags[$i], $this->tags[$i], $page_content);
$i++;
}
$this->total_assigns is the total amount of items in the $this->tags array. $this->tags, and $this->content are array 1, and array 2 respectivly.