Need a quick and easy way to turn a file, into a string I then need to turn the file into two seperate arrays called $username and $password
File Format:
user1:pass1
user2:pass2
user3:pass3
etc. I need the arrays to come out as
$username[0] = "user1";
$password[0] = "pass1";
$username[1] = "user2";
$password[1] = "pass2";
etc
I have already read the file like this:
$file = file_get_contents("accounts.txt");