Skip to content

Instantly share code, notes, and snippets.

@Karnak19
Created October 15, 2018 09:20
Show Gist options
  • Save Karnak19/a772e9fdd888926923bc61e842656d5e to your computer and use it in GitHub Desktop.
Save Karnak19/a772e9fdd888926923bc61e842656d5e to your computer and use it in GitHub Desktop.
j'ai appris toutes les ficelles des strings
<?php
$string1 = "0@sn9sirppa@#?ia'jgtvryko1";
$string2 = "q8e?wsellecif@#?sel@#?setuotpazdsy0*b9+mw@x1vj";
$string3 = "aopi?sgnirts@#?sedhtg+p9l!";
function function_decode($word) {
$len = strlen($word)/2;
$sub = substr ($word, 5, $len);
$rep = str_replace('@#?', ' ', $sub);
$rev = strrev($rep);
return $rev;
}
echo function_decode($string1).' ';
echo function_decode($string2).' ';
echo function_decode($string3);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment