How can I fix this? My hosting server is running Php7 and splits are a no-no.
// strip trailing units from a measurement
function strip_unit ($data) {
preg_match('/([\d\.\+\-]+)/',$data,$t);
return $t[1];
}
// THIS PORTION IS COURTESY OF RAINER AT
http://www.bashewa.com// now split temps and dates for warmest/coldest night/day records
list($mwarmestdayonrecord_temp, $date) = split("[ ]+on:[ ]+", $mwarmestdayonrecord);
$date = strtotime($date);
$mwarmestdayonrecord_date = date($SITE['dateOnlyFormat'],$date);
list($mwarmestnightonrecord_temp, $date) = split("[ ]+on:[ ]+", $mwarmestnightonrecord);
$date = strtotime($date);
$mwarmestnightonrecord_date = date($SITE['dateOnlyFormat'],$date);
list($mcoldestdayonrecord_temp, $date) = split("[ ]+on:[ ]+", $mcoldestdayonrecord);
$date = strtotime($date);
$mcoldestdayonrecord_date = date($SITE['dateOnlyFormat'],$date);
list($mcoldestnightonrecord_temp, $date) = split("[ ]+on:[ ]+", $mcoldestnightonrecord);
$date = strtotime($date);
$mcoldestnightonrecord_date = date($SITE['dateOnlyFormat'],$date);
// end of functions
//=========================================================================