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-- NDArray::trunc --FILE-- <?php $a = \NDArray::array([[-156.50, 150.525435], [0, -3..
Decoded Output download
--TEST--
NDArray::trunc
--FILE--
<?php
$a = \NDArray::array([[-156.50, 150.525435], [0, -39.151414]]);
print_r(\NDArray::trunc($a)->toArray());
print_r(\NDArray::trunc($a[0])->toArray());
print_r(\NDArray::trunc([[0.12],[-0.513124]])->toArray());
?>
--EXPECT--
Array
(
[0] => Array
(
[0] => -156
[1] => 150
)
[1] => Array
(
[0] => 0
[1] => -39
)
)
Array
(
[0] => -156
[1] => 150
)
Array
(
[0] => Array
(
[0] => 0
)
[1] => Array
(
[0] => -0
)
)
Did this file decode correctly?
Original Code
--TEST--
NDArray::trunc
--FILE--
<?php
$a = \NDArray::array([[-156.50, 150.525435], [0, -39.151414]]);
print_r(\NDArray::trunc($a)->toArray());
print_r(\NDArray::trunc($a[0])->toArray());
print_r(\NDArray::trunc([[0.12],[-0.513124]])->toArray());
?>
--EXPECT--
Array
(
[0] => Array
(
[0] => -156
[1] => 150
)
[1] => Array
(
[0] => 0
[1] => -39
)
)
Array
(
[0] => -156
[1] => 150
)
Array
(
[0] => Array
(
[0] => 0
)
[1] => Array
(
[0] => -0
)
)
Function Calls
None |
Stats
MD5 | 96c42d71e77e7e158825568804cd236e |
Eval Count | 0 |
Decode Time | 80 ms |