我需要用来自查询的值填充这个数组。
$articles = array(
new article("1", "Example item #1", "4.00"),
new article("1", "Another thing", "3.50"),
new article("1", "Something else", "1.00"),
new article("1", "A final item", "4.45"),
);
$sql="SELECT quantity, desc, curr FROM sales";
我需要一个类的数组中的文章。我该怎么做呢?
https://stackoverflow.com/questions/51920671
复制相似问题