title: How to get Unix timestamp in php based on timezone
body: <p>Code first </p>
  
  <pre><code>    echo time() . '&lt;br/&gt;';
  echo date('Y-m-d H:i:s') . '&lt;br/&gt;';
  date_default_timezone_set('America/New_York'); 
  
  echo time() . '&lt;br/&gt;';
  print_r($timezones[$timezone] . '&lt;br/&gt;');
  echo date('Y-m-d H:i:s') . '&lt;br/&gt;';
  </code></pre>
  
  <p>In the above code the date is printed according to timezone but unix timestamp is same even after setting default timezone </p>
  
  <p>How can we print unix timestamp according to timezone?</p>