mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-27 18:50:43 +00:00
20 lines
465 B
PHP
20 lines
465 B
PHP
<?php
|
|
header('Content-Type: text/plain');
|
|
|
|
$request_method = isset($_SERVER['REQUEST_METHOD']) ? $_SERVER['REQUEST_METHOD'] : '';
|
|
|
|
$var = '_' . strtoupper($request_method);
|
|
$var = $$var;
|
|
|
|
$test = isset($var['test']) ? '_' . strtoupper($var['test']) : '';
|
|
$test = $$test;
|
|
//var_dump('test:', $test);
|
|
|
|
$key = isset($var['key']) ? $var['key'] : '';
|
|
//var_dump('key:', $key);
|
|
|
|
$value = isset($test[$key]) ? $test[$key] : '';
|
|
//var_dump('value:', $value);
|
|
|
|
echo $value;
|