if (preg_match("/Mostly clear/i", "Mostly cloudy with little teperature change")) { echo "<img src='pages/wether/icons/MostlyClear.png' width='60' height='60' />"; }