微信菜单php 数组格式

Posted jackylee92

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了微信菜单php 数组格式相关的知识,希望对你有一定的参考价值。

//备用


$menu[‘button‘][‘0‘][‘name‘] = ‘积分‘;

$menu[‘button‘][‘0‘][‘sub_button‘][‘0‘][‘type‘] = ‘view‘;
$menu[‘button‘][‘0‘][‘sub_button‘][‘0‘][‘name‘] = ‘积分商城‘;
$menu[‘button‘][‘0‘][‘sub_button‘][‘0‘][‘url‘] = ‘xxx‘;

$menu[‘button‘][‘0‘][‘sub_button‘][‘1‘][‘type‘] = ‘view‘;
$menu[‘button‘][‘0‘][‘sub_button‘][‘1‘][‘name‘] = ‘微商城‘;
$menu[‘button‘][‘0‘][‘sub_button‘][‘1‘][‘url‘] = ‘xxx‘;

$menu[‘button‘][‘0‘][‘sub_button‘][‘2‘][‘type‘] = ‘view‘;
$menu[‘button‘][‘0‘][‘sub_button‘][‘2‘][‘name‘] = ‘优品专区‘;
$menu[‘button‘][‘0‘][‘sub_button‘][‘2‘][‘url‘] = ‘xxx‘;

$menu[‘button‘][‘1‘][‘name‘] = ‘活动内容‘;

$menu[‘button‘][‘1‘][‘sub_button‘][‘0‘][‘type‘] = ‘view‘;
$menu[‘button‘][‘1‘][‘sub_button‘][‘0‘][‘name‘] = ‘最新活动‘;
$menu[‘button‘][‘1‘][‘sub_button‘][‘0‘][‘url‘] = ‘xxx‘;

$menu[‘button‘][‘1‘][‘sub_button‘][‘1‘][‘type‘] = ‘view‘;
$menu[‘button‘][‘1‘][‘sub_button‘][‘1‘][‘name‘] = ‘分享有礼‘;
$menu[‘button‘][‘1‘][‘sub_button‘][‘1‘][‘url‘] = ‘xx‘;

$menu[‘button‘][‘1‘][‘sub_button‘][‘2‘][‘type‘] = ‘view‘;
$menu[‘button‘][‘1‘][‘sub_button‘][‘2‘][‘name‘] = ‘在线调研‘;
$menu[‘button‘][‘1‘][‘sub_button‘][‘2‘][‘url‘] = ‘xxx‘;

$menu[‘button‘][‘1‘][‘sub_button‘][‘3‘][‘type‘] = ‘view‘;
$menu[‘button‘][‘1‘][‘sub_button‘][‘3‘][‘name‘] = ‘秒杀专区‘;
$menu[‘button‘][‘1‘][‘sub_button‘][‘3‘][‘url‘] = ‘xx‘;


//------------------------------------3-------------------------------------

$menu[‘button‘][‘2‘][‘name‘] = ‘积分管理‘;

$menu[‘button‘][‘2‘][‘sub_button‘][‘0‘][‘type‘] = ‘view‘;
$menu[‘button‘][‘2‘][‘sub_button‘][‘0‘][‘name‘] = ‘积分查询‘;
$menu[‘button‘][‘2‘][‘sub_button‘][‘0‘][‘url‘] = ‘xxx‘;

$menu[‘button‘][‘2‘][‘sub_button‘][‘1‘][‘type‘] = ‘view‘;
$menu[‘button‘][‘2‘][‘sub_button‘][‘1‘][‘name‘] = ‘订单查询‘;
$menu[‘button‘][‘2‘][‘sub_button‘][‘1‘][‘url‘] = ‘xx‘;

$menu[‘button‘][‘2‘][‘sub_button‘][‘2‘][‘type‘] = ‘view‘;
$menu[‘button‘][‘2‘][‘sub_button‘][‘2‘][‘name‘] = ‘购物车‘;
$menu[‘button‘][‘2‘][‘sub_button‘][‘2‘][‘url‘] = ‘xxx‘;

$menu[‘button‘][‘2‘][‘sub_button‘][‘3‘][‘type‘] = ‘view‘;
$menu[‘button‘][‘2‘][‘sub_button‘][‘3‘][‘name‘] = ‘积分规则‘;
$menu[‘button‘][‘2‘][‘sub_button‘][‘3‘][‘url‘] = ‘xxx‘;

























以上是关于微信菜单php 数组格式的主要内容,如果未能解决你的问题,请参考以下文章

js如何定义二维数组,一维的key为动态值。就是要处理二级菜单显示。

php 多维数组排序[未显示固定菜单选项]

php 生成菜单数组

PHP 获取菜单项数组

php通用的树型类创建无限级树型菜单

在 PHP 中递归创建多维数组