Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $nope = $_GET['nope'];
- $nope = fix($nope);
- echo "<br>".$nope;
- function fix($str){
- $num = '';
- for ($i = 0; $i < strlen($str); $i++) {
- if (is_numeric($str[$i])) {
- $num .= $str[$i];
- }
- }
- if(substr($num, 0, 2) == "08") { $num = "628".substr($num, 2, strlen($num)-2); }
- return $num;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement