Created
December 14, 2018 18:46
-
-
Save rimelek/8cfaf5e7ed881298d27d4593ddb0f2e5 to your computer and use it in GitHub Desktop.
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 | |
$str = 'r_\T_W | |
[QBQSC_^ID | |
yBZ | |
UWI | |
U]QY\D | |
]UBD | |
QJ | |
U\C_ | |
]UW_\T_ | |
QZQ^T?[_D | |
YC | |
[Q@'; | |
foreach (preg_split('#[\r\n]+#', $str) as $line) { | |
$chars = str_split($line); | |
foreach ($chars as $char) { | |
echo $char ^ '0'; | |
} | |
echo ' '; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment