I have a script with an array of usernames and passwords embedded within, but would like to pull them from a pipe delimited textfile instead like...
master|pswd143
widget|fore425
root|admin123
How do I pull the passcodes from the textfile into an array like the embedded example shown below? (Thanks for any help you can lend to this newbie!)
$LOGIN = array(
'master' => 'pswd143',
'widget' => 'fore425',
'root' => 'admin123'
);