本文整理汇总了PHP中menu::pushtoArray方法的典型用法代码示例。如果您正苦于以下问题:PHP menu::pushtoArray方法的具体用法?PHP menu::pushtoArray怎么用?PHP menu::pushtoArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类menu
的用法示例。
在下文中一共展示了menu::pushtoArray方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: menu
$IBLang->pushtoArray("IBEnglisha2", "ids");
$IBLang->pushtoArray("English A2 HL/SL", "items");
$IBLang->pushtoArray("English.png", "urlList");
$IBLang->pushtoArray("./ibcalculator/englisha2.php", "url");
$IBLang->createMenuCat("IBLang", 3);
$IBIndividual = new menu();
$IBIndividual->initArray();
$IBIndividual->pushtoArray("IBEcon|IBGeograp|IBHistor|IBPsych", "ids");
$IBIndividual->pushtoArray("Economics HL/SL|Geography HL/SL|History HL/SL|Psychology HL/SL", "items");
$IBIndividual->pushtoArray("Money.png|Globe.png|History.png|Brain.png", "urlList");
$IBIndividual->pushtoArray("./ibcalculator/economics.php|./ibcalculator/geography.php|./ibcalculator/history.php|./ibcalculator/psychology.php", "url");
$IBIndividual->createMenuCat("IBIndividual", 3);
$IBSciences = new menu();
$IBSciences->initArray();
$IBSciences->pushtoArray("IBBio|IBChem|IBPhysics", "ids");
$IBSciences->pushtoArray("Biology HL|Chemistry HL|Physics HL", "items");
$IBSciences->pushtoArray("DNA.jpg|Science.png|Mechanics.png", "urlList");
$IBSciences->pushtoArray("./ibcalculator/biology.php|./ibcalculator/chemistry.php|./ibcalculator/physics.php", "url");
$IBSciences->createMenuCat("IBSciences", 3);
$IBMath2 = new menu();
$IBMath2->initArray();
$IBMath2->pushtoArray("IBComp|IBMath2", "ids");
$IBMath2->pushtoArray("Computer Science HL/SL|Mathematics HL/SL", "items");
$IBMath2->pushtoArray("Computer.png|Math.png", "urlList");
$IBMath2->pushtoArray("./ibcalculator/computers.php|./ibcalculator/mathematics.php", "url");
$IBMath2->createMenuCat("IBMath2", 3);
echo '</div>';
echo '<div id="content" style="display: none"><p>Find out how prepared you are for the your AP, IB, SAT, ACT or subject test exams using AP Calculator\'s scoring calculators and tools. Tags: Advanced Placement Calculator, IB diploma Calculator, SAT/ACT Calculator, SAT subject tests Calculator</p></div>';
include './Template/Ffooter.php';
echo '</body>';
echo '</html>';
示例2: menu
<?php
include './Template/Fpages.php';
set_boolTrue();
$menu = new menu();
$menu->initArray();
$menu->pushtoArray("AP|IB|ACT|SATS", "ids");
$menu->pushtoArray("./APcourses.php|./IBcourses.php|./StdTests.php|./SubjectTests.php", "url");
$menu->pushtoArray("Advanced Placement|International Baccalaureate|Standardized Tests|SAT Subject Tests ", "items");
$menu->pushtoArray("AP.jpg|IB.jpg|test.png|sats.png", "urlList");
$title = 'Course Info and Resources';
$keywords = 'Advanced Placement info, IB diploma info, SAT/ACT info, SAT subject tests info';
$menu->menuinit($title, $keywords);
$menu->createMenuPage();
?>