Talks

PHP For Absolute Beginners

At last night’s Winnipeg WordPress Meetup, I gave a PHP For Absolute Beginners talk. It was a fun chance to put myself in the mindset of a beginner again–which wasn’t that long ago!

At the end I gave a quick example of doing a dynamic copyright footer. Here’s the code:

$start_date = '2005';
$end_date = date( 'Y' );

// only print the start date and dash if it's different than the end date
if ( $start_date != $end_date ) {
	echo $start_date . '–';
}

// always print the end date
echo $end_date

And, here’s the slides:

Standard

One thought on “PHP For Absolute Beginners

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s