CMS

Write a PHP script that has one string variable named tooManySpaces and give it a value of a string with at least 5 spaces at the front and at least 5 spaces the end of the string. Write PHP code that invokes (calls) the PHP trim function and echo out the values of the string variable before and after you trim it. Test your code using an online PHP testing tool and copy and paste the code and the results in the Activity 03 template file.

  1. Write a PHP script that has 5 variables of types. Assign values of an integer, double, string, and array of strings to the first 4 variables. Leave the 5th variable unassigned. Write PHP code that invokes (calls) the PHP gettype function and echo out the values return string values to the get type function. Test your code using an online PHP testing tool and copy and paste the code and the results in the Activity 03 template file.

So, you just want us to do your homework for you?

Did you pay attention in class?

Sponsor our Newsletter | Privacy Policy | Terms of Service