This is a code challenge rather than a specific project that I am working on.
Basically the fist file 'source.php' contains 10 arrays which stores the username, password and email this has the following structure
<?php
$user['userOne'] = array(
'username' = > 'userone',
'password' => '12345abcdef',
'email' = > '123@xyz.com',
);
$user['userTwo'] = array(
....
?>
Then I have an another php file which basically includes an HTML form with the email and password input text boxes.
What I have managed so far is to create an array whenever I need to create a user.
Now what I'd like to do is enable the user to change their email and password in the 'source.php' basically replace the existing array completely or modify the field that is changed i.e. the password or the email.
I do now want to use MySQL as its for just 10 users. I already managed to have the users login with their username and password now I want them to be able to modify the email and their password.