PHPPHP is a scripting language used for web development. PHP has it's origins in 1995 when a guy named Rasmus Lerdorf began developing it under the name "Personal Home Page Tools." In this lesson we will look at a few very simple tricks that can be done using PHP. BTW, when using PHP your page must have a .php extension instead of the usual .html extension.Here's a quick PHP snippet using the echo command: AGENT PHP, reporting for service! Inspect the source code for this page to see how that works!
There was 28 days in February 2005 PHP provides all sorts of useful functions and commands. Take a look at this example:
Decimal 10 equals hexadecimal a. Here's a fun string function for you to try out:
trona --> argus |
Interating Through An Array
Study the code for the following section carefully!
ASSIGNMENT: Using the dechex function, display the hexadecimal value for decimal values 100, 200, 300, 400... 2000. (That's 100 through 2000, counting by 100.) Iterate through these values using the following technique:
--------------------------------------- |