Write a PHP script to generate a random array containing all the ASCII characters from comma (“,”) to pipe (“|”). Then randomly remove and discard an arbitrary element from this newly generated array.
Write the code to efficiently determine the missing character.
Clone this repository: https://github.com/pirex360/ascii-array.git
PHP Version 8.1.x
Run the PHP script using the command line: php index.php
To run the unit tests for the Ascii
class, use PHPUnit: ./vendor/bin/phpunit
This will runs 4 tests with 8 assertions.