February 2, 2012 learn_php

Handling dates in PHP

Handling dates in PHP Dates in php are often overlooked and people tend to think that they will not need to handle dates, but indeed my friend, you will need to know how to handle dates when working with PHP. The most common function in PHP to retrieve the date is date(). This function takes […]

Read more
December 22, 2011 learn_php

Sessions in PHP

Sessions in PHP Before jumping right into sessions in PHP, we should take a look at what exactly is a session. Since we will talk about sessions in PHP, then we are certainly speaking of a website, some sort of communication with a client and server connection, and even a user interaction. So a session […]

Read more
November 16, 2011 Composition of an array

Arrays in PHP made easy

Arrays in PHP made easy It has been mentioned in previous posts, all about scalar variables. These are the ‘normal’ variables we are able to use in a PHP program. An array is somewhat similar to a variable, in that it takes a value, but not just one value, it can take many values. You […]

Read more
November 11, 2011 learn_php

Heredocs in PHP, what are they?

Heredocs in PHP, what are they? We have already seen two kinds of strings in our previous posts. These are the simple ones, single quoted, and double quoted strings. We saw how to define the strings, and have them placed into a variable, for later displaying. How about if we have a very long string, […]

Read more