PHP Salt


A little dash of PHP... my collection of php functions

Version: 2.33.2
Last Build: December 29, 2023 20:28pm (PST)

Main Menu

Home

Get PHP Salt


The Functions

array
db
file
graph
html
mail
math
misc
mobile
script
string
system
time
web
psDayFromDateNum()
Returns the Numerical Day of week from a simple date (04/08/2011)


Description:

Use this to extract the Numerical day of the week from a date string



Usage:

$str = psDayFromDateNum($stringDate);



Example:

	$num = psDayFromDateNum("04/08/2011"); // returns 5




Code:


// example "04/08/2011" returns 5 , 0-sun, 6-sat
function psDayFromDateNum($wDate)
{
return date("w",strtotime($wDate));
}



Changlelog:


And a shot out to:

PHP - php.net
Fedora Server - getfedora.com
Shameless ads to pay for site