PHP 8.3.0 RC 6 available for testing

Yaf_Request_Abstract::getParam

(Yaf >=1.0.0)

Yaf_Request_Abstract::getParam检索调用的参数

说明

public Yaf_Request_Abstract::getParam(string $name, string $default = ?): mixed

参数

name

default

返回值

参见

add a note

User Contributed Notes 1 note

up
-4
yaqi dot wang at fengjr dot com
5 years ago
<?php
$id
= $this->getRequest()->getParam("id",'');
echo
'<pre>';
var_dump($id); //1
?>
To Top