Loop through a string from file and turn values into two seperate arrays
<p>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</p>

<p>File Format:</p>

<pre><code>user1:pass1
user2:pass2
user3:pass3
</code></pre>

<p>etc.
I need the arrays to come out as</p>

<pre><code>$username[0] = "user1";
$password[0] = "pass1";

$username[1] = "user2";
$password[1] = "pass2";
</code></pre>

<p>etc</p>

<p>I have already read the file like this:</p>

<pre><code>$file = file_get_contents("accounts.txt");
</code></pre>
