Question: Please help with this problem Copy and paste your PHP script and give an URL so that I can try it out! Assume that you

Please help with this problem

Copy and paste your PHP script and give an URL so that I can try it out! Assume that you are given a string that two CSI email addresses in it. The email address has the users firstname, then a period, the users last name, the @ symbol and then either cix.csi.cuny.edu or csi.cuny.edu

You can use this in your code:

$textLine = "Email to john.smith@csi.cuny.edu or student.work@cix.csi.cuny.edu ;

Use preg_match to print out the firstname, lastname and the second part of the address as follows:

john

smith

csi.cuny.edu

student

work

cix.csi.cuny.edu

Use other string functions to do the same as the preg_match code above!

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!