Make any necessary changes to any files
The assignment will be tested by running php index.php
on PHP7.4
It does not matter how you display the results, it can be anything:
var_dump(...);
echo "...\n";
echo sprintf(...);
- Allow only unique subscriber emails in a group
- Throw an exception if an email is already used
- Catch the exception and display an error message
- Add 100 random subscribers to a group with random type
- Display the number of subscribers by each type in the group
- Create a subscriber
- Add 3 custom fields to subscriber
- Display subscriber's information
- Display subscriber's fields