} # Selected User Comment $comment = $movie->comment(); if (!empty($comment)) { ++$rows; echo "<tr><td valign='top'><b>User Comments:</b></td><td>{$comment}</td></tr>\n"; } # Quotes $quotes = $movie->quotes(); if (!empty($quotes)) { ++$rows; echo '<tr><td valign=top><b>Movie Quotes:</b></td><td>'; echo preg_replace("/http\\:\\/\\/" . str_replace(".", "\\.", $movie->imdbsite) . "\\/name\\/nm(\\d{7})\\//", "person.php?mid=\\1", $quotes[0]) . "</td></tr>\n"; } # Trailer $trailers = $movie->trailers(TRUE); if (!empty($trailers)) { ++$rows; echo '<tr><td valign=top><b>Trailers:</b></td><td>'; for ($i = 0; $i < count($trailers); ++$i) { if (!empty($trailers[$i]['url'])) { echo "<a href='" . $trailers[$i]['url'] . "'>" . $trailers[$i]['title'] . "</a><br>\n"; } } echo "</td></tr>\n"; } # Crazy Credits $crazy = $movie->crazy_credits(); $cc = count($crazy); if ($cc) { ++$rows;