如何将PHP版jQuery插件传参方式改为长尾词?
- 内容介绍
- 文章标签
- 相关推荐
本文共计46个文字,预计阅读时间需要1分钟。
php 'xxoo', 'sex'=> 'xoxo'); $options=array_merge($defaults, $options); print_r($options);}
test(array('name'=> 'nidaye'));?>
<?php function test($options=array()) { $defaults = array( 'name' => 'xxoo', 'sex' => 'xoxo' ); $options = array_merge($defaults, $options); print_r($options); } test(array('name'=>'nidaye')); ?>
本文共计46个文字,预计阅读时间需要1分钟。
php 'xxoo', 'sex'=> 'xoxo'); $options=array_merge($defaults, $options); print_r($options);}
test(array('name'=> 'nidaye'));?>
<?php function test($options=array()) { $defaults = array( 'name' => 'xxoo', 'sex' => 'xoxo' ); $options = array_merge($defaults, $options); print_r($options); } test(array('name'=>'nidaye')); ?>

