November 29th, 2007 at 7:21pm by Lin
Please consult the original documentation for examples and more information.
Usage Example:
$format = “‘l M j, y \a\t g:iA’”;
date($format, strtotime($date_str)
Result: “Thursday Nov 29, 07 at 2:09PM”
Format Character
Description
Example returned values
Hour
H
24-hour format of an hour with leading zeros
00 through 23
G
24-hour format of an hour without leading zeros
0 through 23
h
12-hour format of an hour with leading zeros
01 through 12
g
12-hour […]
Read the rest of PHP Date Format Cheat Sheet
November 8th, 2007 at 11:30am by Lin
Last week, I spent some time customizing a Pligg installation. After reading many pages of code to familiarize myself with the process, I decided to share my findings in hopes that it will be helpful to some others who also need to customize the look of a Pligg site. This was my first time installing […]
Read the rest of Customize Pligg with Your Own Design
November 3rd, 2007 at 11:19pm by Lin
I was working on a project today and found that the content in a table I created all squeezed together, even though that I had set “cellspacing=10″.
After some investigation I found that in the CSS code, padding and margin of all elements was removed:
body * {
margin: 0;
padding: 0;
}
I could, in theory, […]
Read the rest of CSS … be careful when using wildcard *