Code: Select all
$vid_info = $video->vid_info($video_id, $crisis_id);Code: Select all
if(is_array($vid_info))
{
foreach($vid_info as $datum)
{
$datum = html_ent($datum);
vprintf($item, $datum);
}
}Code: Select all
...<br/>
<span class="input">
<label for="cur_city">current city:</label> <input type="text" name="cur_city" value="%11$s, %13$s" />
</span>
<br/>
<span class="input">
<label for="cur_loc">current location:</label> <input type="text" name="relief_center" value="%21$s" />
</span>
<br/>
<span class="input">
<label for="number">phone contact:</label> <input type="text" name="number" value="%23$s" />
</span>...The problem with this is I don't think that vprintf will let me pas a multi-dimensional array. At least, it hasn't seemed like it will. I may have been doing somethiing wrong...
Does anyone have any ideas for how I could do this (pass a multi-d array to a formatted string and then cycle through it in that part of the template)?