Is it possible, like on the NWS forecast script, to include C, after the Low of 1?
For example: Low of 1 to Low of 1C?
This is the bits of code, I have being trying to figure, but knowing me, it never works!
Code: Select all
if (isset($uomTemp) and $showTempsAs <> 'B') { // use Settings.php Temp units only
$showTempAs = preg_match('|C|i',$uomTemp) ? 'C' : 'F';
$Status .= "<!-- temps in $showTempAs -->\n";
}
Code: Select all
$doESfixup = false;
preg_match_all('!\.\s+([^:]+)\:{0,1}\s+([\d|-]+)(°|°|°|C|F)!Uis',$WUforecasttext[$n],$temp);
if(isset($temp[1][0]) and strpos($temp[1][0],'.') !== false) {
if( $doDebug) { $Status .= "<!-- prune temperature text from '".$temp[1][0]."'"; }
$t = trim(substr($temp[1][0],strpos($temp[1][0],'.')+1));
$temp[1][0] = $t;
if( $doDebug) { $Status .= " to '$t' -->\n"; }
}
Thanks,
William