<code><span>protected</span><span><span>function</span><span>_getSellerMenuList</span><span>()</span> {</span><span>$menu_list</span> = <span>array</span>( <span>'goods'</span> => <span>array</span>(<span>'name'</span> => <span>'商品'</span>, <span>'child'</span> => <span>array</span>( <span>array</span>(<span>'name'</span> => <span>'商品发布'</span>, <span>'act'</span>=><span>'goods_add'</span>, <span>'op'</span>=><span>'index'</span>), <span>array</span>(<span>'name'</span> => <span>'淘宝导入'</span>, <span>'act'</span>=><span>'import'</span>, <span>'op'</span>=><span>'index'</span>), <span>array</span>(<span>'name'</span> => <span>'出售中的商品'</span>, <span>'act'</span>=><span>'online'</span>, <span>'op'</span>=><span>'index'</span>), <span>array</span>(<span>'name'</span> => <span>'仓库中的商品'</span>, <span>'act'</span>=><span>'offline'</span>, <span>'op'</span>=><span>'index'</span>), <span>array</span>(<span>'name'</span> => <span>'关联版式'</span>, <span>'act'</span>=><span>'store_plate'</span>, <span>'op'</span>=><span>'index'</span>), <span>array</span>(<span>'name'</span> => <span>'商品规格'</span>, <span>'act'</span> => <span>'spec'</span>, <span>'op'</span> => <span>'index'</span>), <span>array</span>(<span>'name'</span> => <span>'图片空间'</span>, <span>'act'</span>=><span>'album'</span>, <span>'op'</span>=><span>'album_cate'</span>), )), <span>'promotion'</span> => <span>array</span>(<span>'name'</span> => <span>'促销'</span>, <span>'child'</span> => <span>array</span>( <span>array</span>(<span>'name'</span> => <span>'抢购管理'</span>, <span>'act'</span>=><span>'groupbuy'</span>, <span>'op'</span>=><span>'index'</span>), <span>array</span>(<span>'name'</span> => <span>'代金券管理'</span>, <span>'act'</span>=><span>'voucher'</span>, <span>'op'</span>=><span>'list'</span>), <span>array</span>(<span>'name'</span> => <span>'活动管理'</span>, <span>'act'</span>=><span>'activity'</span>, <span>'op'</span>=><span>'activity'</span>), <span>array</span>(<span>'name'</span> => <span>'申请授权'</span>, <span>'act'</span> =><span>'accredit'</span>, <span>'op'</span>=><span>'list'</span>), <span>array</span>(<span>'name'</span> => <span>'会员管理'</span>, <span>'act'</span>=><span>'membercard'</span>, <span>'op'</span>=><span>'list'</span>) )) ); <span>if</span> (!checkPlatformStore()) { <span>$points</span> = <span>array</span>(<span>'name'</span> => <span>'积分管理'</span>,<span>'act'</span>=><span>'points'</span>,<span>'op'</span>=><span>'index'</span>); <span>/*array_splice(array,start,lenght,array) 第四个参数使用数组的话 用array再包一下,否则当字符串来识别,多维数组伤不起啊……/(ㄒoㄒ)/~~ */</span> array_splice(<span>$menu_list</span>[<span>'promotion'</span>][<span>'child'</span>],<span>2</span>,<span>0</span>,<span>array</span>(<span>$points</span>)); } <span>return</span><span>$menu_list</span>; }</code>').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });
위 내용은 내용을 포함하여 다차원 배열의 지정된 위치에 셀을 삽입하는 PHP를 소개한 내용입니다. PHP 튜토리얼에 관심이 있는 친구들에게 도움이 되기를 바랍니다.