This will work for accessing the internal array key element and the subsequest arrays contained it.
width="100%" class="base-table" cellspacing="0" cellpadding="0" border="0" id="users_test_listing">
width="40%" class="sorter-false" style="text-align:center;">Test Name
width="20%" class="sorter-false" style="text-align:center;">No. of Questions
width="20%" class="sorter-false" style="text-align:center;">Total Marks
width="20%" class="sorter-false" style="text-align:center;">Duration
{foreach from=$user_details.assigned_tests_data item=test_data}
valign="top">{$test_data.test_name}
align="center" valign="top">{$test_data.test_no_questions}
align="center" valign="top">{$test_data.Marks}
align="center" valign="top">{$test_data.Time} Hrs
{/foreach}
manpreet
Best Answer
2 years ago
I'm assigning one multidimensional array named $user_details to smarty from PHP as follows:
The actual array $user_details looks like follows: