Wednesday, April 25, 2012

Programs to accomplish this week are below.
Advanced guys may work independently.

1) A PHP script to accept a word from the user (use a form and a text field) and then output a randomly "shuffled" version of the string. use the PHP function str_shuffle ( ) to accomplish this.
2) Use the pow( ) function to write a script to print to the screen the result of a number $n and a power $p based on user input (use a form and have the user enter a number and a power to raise the number to.)
3) What is the default timezone on your server? Use date_default_timezone_get( ) to find out.
4) Compose a filter that asks the user to enter a number. Use FILTER_SANITIZE_NUMBER_INT and FILTER_VAR to notify the user if they have indeed entered a number.
 5) Choose a php function of your choice from the PHP Manual (Link below) and create your own fun PHP example.
http://php.net/manual/en/ref.strings.php


Due: Friday, April 27

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.