If I have three objects of开发者_JAVA技巧 the same type, how can I add them in a list so I can do afterwards
foreach ($entry in $list)
?
Thanks.
Do you mean like this?
$a=1
$b=2
$c=3
$list = $a,$b,$c
If I have three objects of开发者_JAVA技巧 the same type, how can I add them in a list so I can do afterwards
foreach ($entry in $list)
?
Thanks.
Do you mean like this?
$a=1
$b=2
$c=3
$list = $a,$b,$c
精彩评论