Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 732 Bytes

README.md

File metadata and controls

29 lines (16 loc) · 732 Bytes

ASCII Array

Description / Problem

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.

Installation

Clone this repository: https://github.com/pirex360/ascii-array.git

Usage

PHP Version 8.1.x Run the PHP script using the command line: php index.php

Tests

To run the unit tests for the Ascii class, use PHPUnit: ./vendor/bin/phpunit

This will runs 4 tests with 8 assertions.

Prime Demonstration

Demonstration

Prime Demonstration