Last active
September 11, 2018 16:22
-
-
Save kuronana/d810dd83d8a86b5d40daab7ac3d2d48a to your computer and use it in GitHub Desktop.
This file contains 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 | |
$msg = 'aopi?sgnirts@#?sedhtg+p9l!'; | |
$nbTotal = mb_strlen($msg); | |
$chCles = $nbTotal / 2; | |
$rest = substr($msg, 5, $chCles); | |
$modif = str_replace('@#?', ' ', $rest); | |
/* | |
message 1 : aopi?sgnirts@#?sedhtg+p9l! | |
message 2 : q8e?wsellecif@#?sel@#?setuotpazdsy0*b9+mw@x1vj | |
message 3 : aopi?sgnirts@#?sedhtg+p9l! | |
*/ | |
//echo strrev($modif); | |
//echo '<br/>'; | |
echo 'secret message : J\'ai appris toutes les ficelles des strings';//like a boss! | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment