ыыыы - PHP Online
Form of PHP Sandbox
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of ыыыы.php
- <?php
- function recursive_ksort(&$array) {
- foreach ($array as &$value) {
- if (is_array($value)) recursive_ksort($value);
- }
- return ksort($array);
- }
- $secret_key = 'ddee181d-f8e8-4f3f-90bf-1d7e8f122d9a';
- $params = [
- "recipient_pan" => "4111111111111111",
- "amount" => 10000,
- "transaction" => "f4462ba6-37c5-4455-b0b2-53b179f7a25c",
- "description" => "test_transaction_1",
- "customer" => "test@test.com"
- ];
- // сортировка по ключам параметров
- recursive_ksort($params);
- $data = json_encode($params);
- $digest = $data . $secret_key;
- $key = openssl_pkey_get_private(file_get_contents('privatekey.pem'));
- $signature = "";
- print("x-signature: " . $secret_key . "\n");
- ?>