Question: 3. Write a PHP function that accepts an argument (a string). The argument is always a string that is a comma- separated list of student

3. Write a PHP function that accepts an argument (a string). The argument is always a string that is a comma- separated list of student e-mails. This function should return an array formed from the first part(the part before the character) of student e-mails. As an example: if the argument is the following string: "15701719@emu.edu.tr,16700903@emu.edu.tr,16700969@emu.edu.tr,17700063@emu.edu.tr,17701648@ elfu.edu.tr,19450214@emu.edu.tr,19701446@emu.edu.tr" The function should return the array with the elements: 15701719,16700903,16700969,17700063,17701648,19450214,19701446
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
