I currently tried to get the plain text from another php file line by line, however it seems that it doesnt understand the encoding.
$parsedFile= file_get_contents('source.php', true);
$text= '';
foreach(preg_split("/((\r?\n)|(\r\n?))/", $parsedFile) as $line){
$text.= $line;
}
echo $parsedFile;
How can I extract the text from a php file by using phps in built functions and classes?