1. Create a system to guarantee unique usernames inregister.php.
Hint : Before you attempt to create the directory, usePHP to check your list of existing usernames for match to theJust-registered name. If no match is found, the new name isacceptable. If the username is already in use, then PHP can createan error message requesting a new username.
Answer to Using PHP Project Instructions 1. Create a system to guarantee unique usernames in register.php. Hint : Before you attem…