This article mainly shares with you the detailed explanation of url parameter passing examples in PHP, hoping to help everyone.
Non-closed tag | |
name (required): the data template variable to be output
id( Required): loop variable offset (optional): offset of the data to be output length (optional): length of the output data key (optional): the key variable of the loop, the default value is i mod (optional): modulo the key value, the default is 2 empty (optional): The string displayed if the data is empty |
In Action, first assign a value to the template:
$User = M('User'); $list = $User->selct(); $this->assign('list',$list);
<volist name="list" id="vo"> {$vo.id} {$vo.name} </volist>
{volist name='results' id='result' } url='index.php?id={$result['id']}' {/volist}
php encodes URL parameters and decoding parsing
The above is the detailed content of Detailed explanation of url parameter passing examples in PHP. For more information, please follow other related articles on the PHP Chinese website!