Ask Question
25 November, 02:45

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?

+5
Answers (1)
  1. 25 November, 04:24
    0
    list ($firstName, $lastName, $year) = explode (":", $currentRecord);
Know the Answer?
Not Sure About the Answer?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers