<?php echo $this->getStoreUrl('checkout/cart');?> 获取结账页面的url:<?php echo $this->getUrl('checkout/cart');?> magento的常用函数: //Get the path of your magento page. echo $this->getUrl('mypage'); //Get the path of the image in your skin folder…
PHP常用库函数介绍 一.PHP字符串操作常用函数 1.确定字符串长度 int strlen(string str) 2.比较两个字符串 a. strcmp函数对两个字符串进行二进制安全的比较,并区分大小写 int strcmp(string str1,string str2) b. 以不区分大小写的方式比较两个字符串 int strcasecmp(string str1,string str2) 3.求两个字符串相同部分 int strspn(string str1,string str2)…