Pods: simple way to loop through and display a multi-select field

if ($my-multi-select-field)
{
     foreach($my-multi-select-field as $item)
         {
               echo $item['name'];
          }
}

Here’s another thing I discovered (thanks to Stack Overflow): sometimes you’ll want to loop through your field and display it like:

item, item, item

Minus the comma at the end. To do that, just use this snippet:

echo implode(", ", array_map(create_function('$item', 'return $item["name"];'), $my-multi-select-field));

snippet: converting timecode to seconds

function convertTimeCodeToSeconds(timeString:String, framerate:Number):Number
{
	var timeArray:Array = timeString.split(":");
	var hours:Number = Number(timeArray[0]) * 60 * 60;
	var minutes:Number = Number(timeArray[1]) * 60;
	var seconds:Number = Number(timeArray[2]);
	var frames_raw:Number = Number(timeArray[3]*(1/framerate));
	var frames:Number = int(frames_raw*100)/100;
	var totalTime:Number = hours + minutes + seconds + frames;
	return totalTime;
}