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

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Test array_multisort() function : basic functionality --FILE-- <?php echo "*** Te..

Decoded Output download

*** Testing array_multisort() : basic functionality - renumbering of numeric keys ***

-- Testing array_multisort() function with all normal arguments --

Did this file decode correctly?

Original Code

--TEST--
Test array_multisort() function : basic functionality
--FILE--
<?php
echo "*** Testing array_multisort() : basic functionality - renumbering of numeric keys ***\n";

// Initialise all required variables
$ar1 = array( "strkey" => 2,  1,  9 => 1);
$ar2 = array( 2, "aa" , "1");

echo "\n-- Testing array_multisort() function with all normal arguments --\n";
var_dump( array_multisort($ar1, SORT_ASC, SORT_REGULAR, $ar2, SORT_ASC, SORT_NUMERIC) );
var_dump($ar1, $ar2);

?>
--EXPECT--
*** Testing array_multisort() : basic functionality - renumbering of numeric keys ***

-- Testing array_multisort() function with all normal arguments --
bool(true)
array(3) {
  [0]=>
  int(1)
  [1]=>
  int(1)
  ["strkey"]=>
  int(2)
}
array(3) {
  [0]=>
  string(2) "aa"
  [1]=>
  string(1) "1"
  [2]=>
  int(2)
}

Function Calls

None

Variables

$ar1 [{'key': 'strkey', 'value': 2}, {'key': 1, 'value': 1}, {'key': 9, 'value': 1}]
$ar2 [{'key': 0, 'value': 2}, {'key': 1, 'value': 'aa'}, {'key': 2, 'value': '1'}]

Stats

MD5 8fabfcc8b6ffeddf5bc9b10d1df8eac9
Eval Count 0
Decode Time 100 ms