Thank you at first. CODE:
$flag=1;
foreach( $questionidset as $oneqid)
{
if($oneqid%23==0)
{
if($flag<3)
{
array_push($questionidset, 23*$flag);
$flag++;
}
}
}
print_r($questionidset);
QUESTION: how to make the foreach get dynamic $questionidset after being pushed a new element.
Such as, the original $questionidset is {1,2,23}
The output should be : {1,2,23,23,46}
My purpose is that after pushing a new element to the original array named $questionidset, the foreach loop times can get an increment