Skip to content

Instantly share code, notes, and snippets.

@Jules59
Created March 8, 2018 12:52
Show Gist options
  • Save Jules59/9f57306de9f71df8288edbcdb25706d1 to your computer and use it in GitHub Desktop.
Save Jules59/9f57306de9f71df8288edbcdb25706d1 to your computer and use it in GitHub Desktop.
challenge Junior Jones
<?php
$message = "0@sn9sirppa@#?ia'jgtvryko1";
$message2 = substr($message, 5, 13);
$message3 = str_replace('@#?', ' ', $message2);
$message4 = strrev($message3);
$message = "q8e?wsellecif@#?sel@#?setuotpazdsy0*b9+mw@x1vj";
$message2 = substr($message, 5, 23);
$message3 = str_replace('@#?', ' ', $message2);
$messagefor = strrev($message3);
$message = "aopi?sgnirts@#?sedhtg+p9l!";
$message2 = substr($message, 5, 13);
$message3 = str_replace('@#?', ' ', $message2);
$messageiv = strrev($message3);
echo $answer = "$message4 $messagefor $messageiv";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment