if(substr($ddcoordinates,0,3)==='-45') { echo 'Happy Spring Day'; } else { echo 'Stay Warm'; }