Skip to content

Instantly share code, notes, and snippets.

@datashaman
Last active April 28, 2019 19:24
Show Gist options
  • Select an option

  • Save datashaman/42fa14faf8913128b66672d527f879aa to your computer and use it in GitHub Desktop.

Select an option

Save datashaman/42fa14faf8913128b66672d527f879aa to your computer and use it in GitHub Desktop.
Datashaman\PHPCheck\ascii Example
<?php
<<<CONFIG
packages:
- "datashaman/phpcheck: dev-wip"
CONFIG;
#
# This is a Melody script. http://melody.sensiolabs.org/
#
use function Datashaman\PHPCheck\ascii;
use function Datashaman\PHPCheck\sample;
use function Datashaman\PHPCheck\strings;
// Generate an ASCII character.
var_dump(sample(ascii()));
// Generate an ASCII string.
var_dump(sample(strings(ascii())));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment