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 : usage variation - testing with multiple array a..

Decoded Output download

*** Testing array_multisort() : Testing  all array sort specifiers ***

Did this file decode correctly?

Original Code

--TEST--
Test array_multisort() function : usage variation - testing with multiple array arguments
--FILE--
<?php
echo "*** Testing array_multisort() : Testing  all array sort specifiers ***\n";

$ar = array( 2, "aa" , "1");

array_multisort($ar, SORT_REGULAR, SORT_ASC);
var_dump($ar);

array_multisort($ar, SORT_STRING, SORT_ASC);
var_dump($ar);

array_multisort($ar, SORT_NUMERIC, SORT_ASC);
var_dump($ar);


?>
--EXPECT--
*** Testing array_multisort() : Testing  all array sort specifiers ***
array(3) {
  [0]=>
  string(1) "1"
  [1]=>
  int(2)
  [2]=>
  string(2) "aa"
}
array(3) {
  [0]=>
  string(1) "1"
  [1]=>
  int(2)
  [2]=>
  string(2) "aa"
}
array(3) {
  [0]=>
  string(2) "aa"
  [1]=>
  string(1) "1"
  [2]=>
  int(2)
}

Function Calls

None

Variables

$ar [{'key': 0, 'value': 2}, {'key': 1, 'value': 'aa'}, {'key': 2, 'value': '1'}]

Stats

MD5 55b81ca429c04e4e772915e3596e99c3
Eval Count 0
Decode Time 79 ms