17.6k views
5 votes
The code that follows saves the data that was in the $names array as

User Sen Jacob
by
6.8k points

1 Answer

5 votes
The code
$names = array('joelmurach', 'rayharris', 'mikemurach');
$names= implode("\\", $names);
file_put-contents('usernames.txt', $names);

saves the data as a string with data items separated by new line characters
User Rodeinator
by
5.9k points