If I have an array like the following, how do I get my page to simply echo the first 3 entries and stop?

<html>
<body>

<?php
$x=array("one","two","three","four","five","six");
foreach ($x as $value)
{
echo $value . "<br />";
}
?>

</body>
</html>