blob: 771a14585ff51121a3e1cc8abda1866ae0f8330d [file] [log] [blame]
<?php
function getNewsHeadline($line){
$headline = explode('__FILE__, "', $line)[1]; //get the start of the headline
return explode('"', $headline)[0]; //strip everything after the ending "
}
function getDateFromFileName($baseFileName) {
$dateString = explode("_", $baseFileName)[2];
$dateString = substr_replace($dateString, '-', 6, 0);
return substr_replace($dateString, '-', 4, 0);
}
?>