CrazyEight
30 Apr 2010, 04:07 PM
Anyone willing to take a shot??
Please write a PHP function using valid syntax. The function should be named "squared" and it should accept one parameter, called "$number". The function should first check if the parameter is a numeric value (an integer or floating point number, or a string containing a number). If not, it should return the boolean False. If it is numeric, it should return a value equal to the number sqared (the number times itself).
Thank you.
Please write a PHP function using valid syntax. The function should be named "squared" and it should accept one parameter, called "$number". The function should first check if the parameter is a numeric value (an integer or floating point number, or a string containing a number). If not, it should return the boolean False. If it is numeric, it should return a value equal to the number sqared (the number times itself).
Thank you.