PHP is a server-side, cross-platform, HTML-embedded scripting language. Currently there are over half a million domains running PHP and it is freely available for download online from www.php.net. Much of PHP?s syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in. The goal of the language is to allow web developers to write dynamically generated pages quickly. PHP eliminates the need for numerous small cgi programs by allowing you to place simple scripts directly in your HTML files. It also makes it easier to manage large web sites by placing all components of a web page in a single html file.
String is a type in PHP and it is a series of characters. There are exactly 256 different characters possible. This also implies that PHP has no native support of Unicode.
However I have a good news as well as there is no limitation in string length in PHP (Of course available memory and PHP ini settings can reduce it).
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.
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.