请帮助理解这个PHP代码 [英] please help to understand this php code
问题描述
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屋!