Question: Using php The purpose of this homework is to help you practice on php basics (1,2,3). You need to work on the file: homework3.php to

Using php

Using php The purpose of this homework is to help you practice

The purpose of this homework is to help you practice on php basics (1,2,3). You need to work on the file: homework3.php to finish the homework 3.If you run the code, you should see the following in the browser:Submission requirements:You need to submit source code as one zip on canvasAfter you downloaded the php file, please write code to answer the following questions (each question is 0.25 point = 5% of the total score of this homework, remember the total score is 5 points for this homework):

1. Replace - in the value of $date with / and print out the result (5%)

2. Compare the variable $date with $tar (using natural ordering), then if the result is >0, you should print out the future; if the result is

3. Search for / in $date and print out all positions. If there are more than one position, please delimit each position value with whitespace (5%)

4. Please only use one method to count the number of elements in the array $year and print out the array using one method (5%)

5. Given a string, hello IS218, return the ASCII value of the first character of the string and print out the result. Note: you cannot hard-coded h to get its ASCII value. (5%)

6. Given a string, this is homework for php basics, return the length of the string and print out the result (5%)

7. Return the last two characters (digits in this homework) in the value of $date and print out the result (5%)

8. Break the value in $date (the value obtained in Question1) into an array and print all elements in the array (5%)

3 homework File php x 1 El CO

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!