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 strnatcmp() function : left align, whitespace, digits --CREDITS-- Sol Richar..
Decoded Output download
-- Testing strnatcmp() function whitespace, left-align, digit --
-- Leading whitespace, digits, string 1 longer --
Did this file decode correctly?
Original Code
--TEST--
Test strnatcmp() function : left align, whitespace, digits
--CREDITS--
Sol Richardson <[email protected]>
--FILE--
<?php
echo "-- Testing strnatcmp() function whitespace, left-align, digit --\n";
echo "-- Leading whitespace, digits, string 1 longer --\n";
$str1 = " 00";
$str2 = " 0";
var_dump( strnatcmp( $str1, $str2) );
echo "-- Leading whitespace, digits, string 2 longer --\n";
$str1 = " 0";
$str2 = " 00";
var_dump( strnatcmp( $str1, $str2) );
?>
--EXPECT--
-- Testing strnatcmp() function whitespace, left-align, digit --
-- Leading whitespace, digits, string 1 longer --
int(1)
-- Leading whitespace, digits, string 2 longer --
int(-1)
Function Calls
strnatcmp | 1 |
Stats
MD5 | 7e4792f3312939cec70cc72cbb517e53 |
Eval Count | 0 |
Decode Time | 97 ms |