Ask Question
2 October, 23:05

Assume that a variable named $currentRecord has already been used to read a line of text from a file and contains the string "Chris:Smith:2005". Which of the following lines of code will correctly parse the string and store the three values into variables $firstName, $lastName, and $year?

+4
Answers (1)
  1. 3 October, 01:09
    0
    list ($firstName, $lastName, $year) = explode (":", $currentRecord);
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Assume that a variable named $currentRecord has already been used to read a line of text from a file and contains the string ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers