print_r($ array)results
我从数据库中检索了一些值,并在使用print_r时获得了以下结果:
Array
(
[122] => Array
(
[p_name] => Tony Hutson
[p_image] => profile_image/profile_61323166474.jpg
[pid] => 42
[sid] => 122
[stitle] => sfcxdggf
[audio] => audio_file/audio_61324302202.mp3
[s_description] => ?mnlmkl bvnbmnmmn, bnbmn
[s_image] => sermon_image/image_41324302202.jpg
)
[count] => Array
(
[count] => 2
)
)
Run Code Online (Sandbox Code Playgroud)
如何检索计数值?
我在我的wordpress网站上使用shopp插件for paypal.在页面中有一个"导出选项" shopp->orders.在所购买页面中导出订单的功能是
function exportcolumns () {
$prefix = "p.";
return array(
$prefix.'id' => __('Line Item ID','Shopp'),
$prefix.'optionlabel' => __('Product Variation Name','Shopp'),
$prefix.'description' => __('Product Description','Shopp'),
$prefix.'sku' => __('Product SKU','Shopp'),
$prefix.'quantity' => __('Product Quantity Purchased','Shopp'),
$prefix.'unitprice' => __('Product Unit Price','Shopp'),
$prefix.'total' => __('Product Total Price','Shopp'),
$prefix.'data' => __('Product Data','Shopp'),
$prefix.'downloads' => __('Product Downloads','Shopp')
);
}
Run Code Online (Sandbox Code Playgroud)
在此$prefix.'optionlabel' => __('Product Variation Name','Shopp'),包含3482 Gouchh, Two Sems, With Insurance单个字段中的值.我必须将它分成3个字段,同时导出为xls.
我怎样才能做到这一点?