<?php
class ABC
{
public static function recursion($information, $list)
{
self::$array = $information;
self::$keylist = $list;
}
public static $array;
private static $keylist;
private static $asterisk = "**";
}
$information = array("login" => "someUsername",
"password" => "somePassword",
"card_pin"=>"card_1234",
"pin"=>"pin_356",
"iin" => "iin_123",
"shipping" => array("telephone" => array("value" => "telephone_998")),
"cardnumber" => "card_number_876",
"customer_id" => "customer_654",
"telephone" => "someOtherTelephoneNumber555");
$list = "login,customer_id";
print_r($information);
echo "\n\n";
ABC::recursion($information, $list);
print_r(Recursion::$array);
- Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- Array
(
[login] => someUsername
[password] => somePassword
[card_pin] => card_1234
[pin] => pin_356
[iin] => iin_123
[shipping] => Array
(
[telephone] => Array
(
[value] => telephone_998
)
)
[cardnumber] => card_number_876
[customer_id] => customer_654
[telephone] => someOtherTelephoneNumber555
)
Fatal error: Uncaught Error: Class "Recursion" not found in /in/cEDL9:30
Stack trace:
#0 {main}
thrown in /in/cEDL9 on line 30
Process exited with code 255. - Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
- Array
(
[login] => someUsername
[password] => somePassword
[card_pin] => card_1234
[pin] => pin_356
[iin] => iin_123
[shipping] => Array
(
[telephone] => Array
(
[value] => telephone_998
)
)
[cardnumber] => card_number_876
[customer_id] => customer_654
[telephone] => someOtherTelephoneNumber555
)
Fatal error: Uncaught Error: Class 'Recursion' not found in /in/cEDL9:30
Stack trace:
#0 {main}
thrown in /in/cEDL9 on line 30
Process exited with code 255. - Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
- Array
(
[login] => someUsername
[password] => somePassword
[card_pin] => card_1234
[pin] => pin_356
[iin] => iin_123
[shipping] => Array
(
[telephone] => Array
(
[value] => telephone_998
)
)
[cardnumber] => card_number_876
[customer_id] => customer_654
[telephone] => someOtherTelephoneNumber555
)
Fatal error: Class 'Recursion' not found in /in/cEDL9 on line 30
Process exited with code 255.
preferences:
228.7 ms | 402 KiB | 330 Q