Skip to content

Instantly share code, notes, and snippets.

@rimelek
Created December 14, 2018 18:46
Show Gist options
  • Save rimelek/8cfaf5e7ed881298d27d4593ddb0f2e5 to your computer and use it in GitHub Desktop.
Save rimelek/8cfaf5e7ed881298d27d4593ddb0f2e5 to your computer and use it in GitHub Desktop.
<?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