- var_dump: documentation ( source)
- json_decode: documentation ( source)
- time: documentation ( source)
- setcookie: documentation ( source)
<?php
function env($name) { return 'd2fbec1321de3bc53af2fe7716c4b90c';}
$setup_finish_args_raw = '{"acct_username":"hello","acct_email":"hello@admin.tld","acct_password":"hello","setup_auth_key":true}';
$setup_finish_args = json_decode($setup_finish_args_raw);
// unset cookie
setcookie('setup_arguments', '', time() - 3600);
$transaction_authorised = env('TMP_SETUP_AUTH_KEY') == $setup_finish_args->setup_auth_key;
var_dump($transaction_authorised);
var_dump('anystring' == true);
var_dump('anystring' === true);