Well, there is no "myids" key in the array. You are using purely numeric IDs, so none of the keys will be named in your array.
$myids=$_POST['myids'];
foreach ($myids as $value){
echo $value;
}
This is unrolling each row of $myids into $value. Once it unrolls and enters the loop, you should not try to access $myids, but should work solely with $value, which represents ONLY the current row.
On the first iteration, $value will contain:
string(2) "45"
On the second iteration, $value will contain:
string(2) "46"
Third iteration:
string(2) "47"
As you can see, $value only ever contains string values, so there are no arrays or keys to access within. It's pulling one row on each iteration of the loop and inserting it directly into $value. As such, you only need to echo $value directly.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…