Last active
April 28, 2019 19:24
-
-
Save datashaman/42fa14faf8913128b66672d527f879aa to your computer and use it in GitHub Desktop.
Datashaman\PHPCheck\ascii Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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