Monthly Archives: May 2011
PHP Add Days to Date
| May 21, 2011 | Posted by The Futtock under Web Development |
Using the PHP functions date() and strtotime() we can easily take a date and add days to the date. We can also add weeks months and years.
// Set the current date:
$datetoday = date(“Y-m-d”);
// Add a day to the date:
$newdate = strtotime(date(“Y-m-d”, strtotime($$datetoday)) . ” +1 day”);
// Add a week to the date:
$newdate = strtotime(date(“Y-m-d”, …
HTML Entities
| May 19, 2011 | Posted by The Futtock under Web Development |
This is a list of HTML Entities.
Name
Character
Unicode code point (decimal)
Standard
DTD
Old ISO subset
Description
quot
”
U+0022 (34)
HTML 2.0
HTMLspecial
ISOnum
quotation mark (= APL quote)
amp
&
U+0026 (38)
HTML 2.0
HTMLspecial
ISOnum
ampersand
apos
‘
U+0027 (39)
XHTML 1.0
HTMLspecial
ISOnum
apostrophe (= apostrophe-quote); see below
lt
<
U+003C (60)
HTML 2.0
HTMLspecial
ISOnum
less-than sign
gt
>
U+003E (62)
HTML 2.0
HTMLspecial
ISOnum
greater-than sign
nbsp
U+00A0 (160)
HTML 3.2
HTMLlat1
ISOnum
no-break space (= non-breaking space)
iexcl
¡
U+00A1 (161)
HTML 3.2
HTMLlat1
ISOnum
inverted exclamation mark
cent
¢
U+00A2 (162)
HTML 3.2
HTMLlat1
ISOnum
cent sign
pound
£
U+00A3 (163)
HTML 3.2
HTMLlat1
ISOnum
pound sign
curren
¤
U+00A4 (164)
HTML 3.2
HTMLlat1
ISOnum
currency sign
yen
¥
U+00A5 (165)
HTML 3.2
HTMLlat1
ISOnum
yen sign
brvbar
¦
U+00A6 ..
Recent Comments