26384Playing With Numbershttp://www.apdz.com/phpbb/viewtopic.php?t=38In an earlier tutorial, I described how to define variables as numbers. Basically you chose a variable name, for this example lets chose ?$number?, and you chose a value, we?ll use 15. The code could then be written as shown below.PHP > Tips and Tutorials > Introduction to PHPOct 15, 2006Chris
PHP has the capability of doing thousands of different useful things. On of those useful things, is the ability to redirect users using HTTP headers alone. This is different from using plain HTML Meta tags to redirect, as using this method the user won't even see the redirect occur. This can be very useful in creating a page that redirects to different pages, depending on the input to the script.
If you are just starting to learn PHP you first need to find a free/cheap host (I personally prefer Fly2Blue as they are cheap, easy to use and offer great services and domain registration), you are then going to need to check that your host provides PHP of some kind (over all PHP tutorials, PHP5 is preferred). Or alternatively you can install your own server software and install your own version of PHP
Right, now we have a website developing environment, we need to learn to use this great language PHP. Like all great programming languages, we need to learn to print and the most common way of learning is to print "Hello, World!" and this tutorial is no exception
It is often necessary to arrange the elements in an array in numerical order from highest to lowest values (descending order) or vice versa (ascending order). If the array contains string values, alphabetical order may be needed. Sorting a one-dimensional arrays is quite easy.
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):
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.