Php Prelim

1. Declare a variable named 'name' containing the text 'your-name' and then write "I am your-name." using the variable to write the 'your-name' part. You may only use two commands. (25 pts)

2. Use the code from the previous example but add a check using an 'if' condition to check whether the name is 'your-name'. Place the text from the previous example in the 'if' condition.(25 pts)

In other words:
If the name is 'your-name' write 'I am 'your-name'.



And here is the rest of it.

Post a Comment

0 Comments