$dw = date( "w", $timestamp);
Where $dw will be 0 (for Sunday) through 6 (for Saturday) as you can see here:
http://www.php.net/manual/en/function.date.php
More Related Contents:
- Timezone conversion in php
- php convert datetime to UTC
- PHP, MySQL and Time Zones
- Convert UTC dates to local time in PHP
- Set timezone in PHP and MySQL
- php: setting a timezone by UTC offset
- How to update timezonedb in PHP (updating timezones info)?
- How to tell if a timezone observes daylight saving at any time of the year?
- Different timezone_types on DateTime object
- How to convert UTC datetime to another timezone?
- How to detect Ambiguous and Invalid DateTime in PHP?
- Exactly parse string to datetime format [closed]
- Display which day it is? sunday or monday “php coding”? [closed]
- PHP: Return all dates between two dates in an array [duplicate]
- Finding the number of days between two dates
- Why can’t I access DateTime->date in PHP’s DateTime class?
- “date(): It is not safe to rely on the system’s timezone settings…”
- Compare given date with today
- How we can add two date intervals in PHP
- get UTC time in PHP
- PHP Configuration: It is not safe to rely on the system’s timezone settings [duplicate]
- php: convert milliseconds to date
- How do I get Greenwich Mean Time in PHP?
- PHP, Get tomorrows date from date
- Calculate total seconds in PHP DateInterval
- Is there a built-in function or plugin to handle date formatting in JavaScript?
- How to find timezone ID from IP address/country name in PHP?
- Storing time information: Timezone required?
- adding 1 day to a DATETIME format value
- day of the week to day number (Monday = 1, Tuesday = 2)