[英]Smarty in prestashop .tpl, how to print only the value, not the full array
我只希望打印此結果的值“數據”:
$ZC_HEALTHBAND_DATA Smarty_Variable Object (3)
->value = Array (1)
0 => Array (3)
id => "3"
option => "ZC_HEALTHBAND_DATA"
data => "<table width="100%"><tr><td></td><td ..."
->nocache = false
->scope = "/..."
我嘗試使用{$ ZC_HEALTHBAND_DATA | @print_r},但這同時打印了數據和數組...
Array ( [0] => Array ( [id] => 3 [option] => ZC_HEALTHBAND_DATA [data] =>
<table width="100%"><tr><td></td><td ...
)) 1
我只想打印:
<table width="100%"><tr><td></td><td ...
謝謝
它是一個二維數組:
{$ZC_HEALTHBAND_DATA[0].data}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.