I have a php script that I am have problems with. I am trying to get the information from my form to insert into my array. When I echo the code it only show up as array. What do I need to do to fix this

Form.php

<html>
<body>
<form action="code.php" method="POST">
<input type="text" name="$name" />
<input type="submit" value="submit" />
</form>
</body>
</html>


Code.php

<?php
$numbers = array("$_POST");
foreach($numbers as $shown)
{
echo $shown. "<br>";
}
?>