Let's get started. The first thing to do is connect to the database.The function to connect to MySQL is called mysql_connect. This function returns a resource which is a pointer to the database connection. It's also called a database handle, and we'll use it in later functions. Don't forget to replace your connection details.
Ok, so from the prototype above, we can see the function explode() (a function is denoted by the () after the name as this is where you put any parameters) will create an array (oh the joy):
Strings are probably what you will use most in your PHP script. From concatenating, looking for patterns, trim, chop etc. So I guess it's a good idea to take a better look at this creature. We will also take a peek at some string functions that you might find useful for everyday coding.
In Picking Up Perl, Bradley Kuhn cites a saying from the Perl community which says, "Perl promotes laziness, impatience and hubris." He explains how lazy programmers don't want to write the same routines repeatedly so they design their code to be reusable as much as possible. Impatient programmers write efficient programs to do work for them and programmers with pride write clean, readable code and share it with others. The PHP Extension and Application Repository (PEAR) brings this philosophy to PHP
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.