Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php function sortAlphabetsDescending($input) { // Convert the string into an array..

Decoded Output download

<?php 
function sortAlphabetsDescending($input) { 
    // Convert the string into an array 
    $alphabetArray = str_split($input); 
     
    // Sort the array in descending order 
    rsort($alphabetArray); 
     
    // Convert the array back into a string 
    $sortedString = implode('', $alphabetArray); 
     
    return $sortedString; 
} 
 
// Example input 
$input = "fhdbgiacej"; // Replace this with your 10 shuffled alphabets 
 
// Sort and display the output 
echo sortAlphabetsDescending($input); 
?> 

Did this file decode correctly?

Original Code

<?php
function sortAlphabetsDescending($input) {
    // Convert the string into an array
    $alphabetArray = str_split($input);
    
    // Sort the array in descending order
    rsort($alphabetArray);
    
    // Convert the array back into a string
    $sortedString = implode('', $alphabetArray);
    
    return $sortedString;
}

// Example input
$input = "fhdbgiacej"; // Replace this with your 10 shuffled alphabets

// Sort and display the output
echo sortAlphabetsDescending($input);
?>

Function Calls

str_split 1
sortAlphabetsDescending 1

Variables

$input fhdbgiacej

Stats

MD5 004398695e6ef4927294e1e89f9d45b2
Eval Count 0
Decode Time 53 ms