Skip to content

Write a PHP script to generate a random array containing all the ASCII characters from comma (“,”) to pipe (“|”) ...

Notifications You must be signed in to change notification settings

pirex360/ascii-array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Write a PHP script to generate a random array containing all the ASCII characters from comma (“,”) to pipe (“|”) ...

Topics

Resources

Stars

Watchers

Forks

Languages