请帮助理解这个PHP代码 [英] please help to understand this php code

查看:52
本文介绍了请帮助理解这个PHP代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

public $ config = array();

private $ items = array();

private $ names = array();

private $ prices = array();

private $ qtys = array();

private $ urls = array();

private $ subtotal = 0;

private $ itemCount = 0;

可以任何正文请解释上面代码的含义。在第一行它在我的另一个index.php文件中说类Jcart,事情是我正在学习php,所以我下载了这段代码并尝试理解它,但我被困在这些行中。我不明白为什么他这样写,请解释

解决方案

config = array();

private


items = array();

private


names = array();

private

public $config = array();
private $items = array();
private $names = array();
private $prices = array();
private $qtys = array();
private $urls = array();
private $subtotal = 0;
private $itemCount = 0;
can any body please explain what the meaning of above code. in the first line its says class Jcart in my other index.php file, the thing is i am learning php and so i downloaded this code and try to understand it but i got stuck in these lines. and i dont understand why he wrote it that way, please explain

解决方案

config = array();
private


items = array();
private


names = array();
private


这篇关于请帮助理解这个PHP代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆