An easy way to get the sunset / sunrise times for a city in PHP
<p>Is there a way to get sunrise and sunset times in PHP without having to deal with Zenith and GMT offsets?  </p>

<p>The functions <code>date_sunrise()</code> and <code>date_sun()</code> asks for zenith and GMT which I don't want to deal with.</p>

<p>Ideally I would simply write <code>someSunriseFunction(&lt;latitude&gt;, &lt;longitude&gt;, &lt;timezone&gt;)</code>
i.e. <code>someSunriseFunction(34.30, -118.15, 'EST')</code> would be for Los Angeles.</p>

<p>Thanks.</p>
