我想我最終的結果看起來是這樣的:構建陣列,用單引號包含多個值,而分隔每個用逗號
Vendor1 => 'description1,description2,description3',
Vendor2 => 'description4,description5,description6'
我現在有這樣的事情:
if(mssql_num_rows($execute)){
while($row = mssql_fetch_array($execute)){
$dropdown[$row['VendorName']] .= "'" . $row['Transaction Description'] . "',";
}
}
但是這給了我:
["Harland Financial Solutions"]=>
string(54) "'Software-implemention/license/support','sfw support',"
的,你可以做未便是不是你有什麼呢?你是指「$ dropdown」是如何打印的?如果是這樣,你需要告訴我們你用什麼代碼打印出它的值。 – thatidiotguy 2013-05-07 21:39:01