($sta_h . $sta_min), "draw_end" => ($end_h . $end_min), "draw_length" => $draw_len); } // word wrap function that returns specified number of lines // when lines is 0, it returns the entire string as wordwrap() does it function word_wrap($str, $length, $lines=0) { if ($lines > 0) { $len = $length * $lines; if ($len < strlen($str)) { $str = substr($str,0,$len).'...'; } } return $str; } ?>