And second if anyone can give me a sample of how to do a preg_match () for getting all the text between two words in a document.
So the idea is something like this:
Code: Select all
<?php
preg_match("/^(initialword) to (endword)$/", $file, $matches);
?>