Desires and elegant foreach for a messy array |
[eluser]pdxbenjamin[/eluser]
My array looks something like this... Code: Array When I foreach through them I get... Code: 1 That isn't my problem, what I have is an update running at the end of each iteration. Code: 1 How do I make it a collective so I can format the string, and make one Update. I'd like to have the final result. 1, 2, 3, 4, 5 Thanks.
[eluser]jmadsen[/eluser]
assuming you want to build an sql IN clause? Look at http://php.net/manual/en/function.implode.php
|
Welcome Guest, Not a member yet? Register Sign In |