PHP Salt


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

Version: 2.20.2
Last Build: October 16, 2017 12:40pm (PST)

Main Menu

Home

Get PHP Salt


The Functions

array
file
graph
html
mail
math
misc
mobile
script
string
system
time
psDayFromDate()
Returns the Day (short name) of week from a simple date (04/08/2011)


Description:

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


Usage:

$str = psDayFromDate($stringDate);


Example:

	$str = psDayFromDate("04/08/2011"); // returns "Fri"



Code:


// example "04/08/2011" returns Fri
function psDayFromDate($wDate)
{
return date("D",strtotime($wDate));
}

Changlelog:


And a shot out to:

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