I want the loop data out side forloop, but i'm getting only one value

```
<form action="<?=$_SERVER['PHP_SELF']?>" method="post">

               <select name="test[]"  multiple="multiple">
                    <option value="test">test</option>
                    <option value="mytesting">mytesting</option>
                    <option value="testingvalue">testingvalue</option>
                    </select>
                <input type="submit" value="Send" />
                   </form>

<?php
    $test=$_POST['test'];
    for($i=0;$i<count($test);$i++)
    {
    $tyy = $test[$i];
    }

?>

```

I want to get $tyy out side for loop

I want the loop data out side forloop by i am getting only one value