PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I think with distinct all of the fields that are returned would need to match rather than just 1 or 2 of the fields, but if that is what you are looking for then distinct would be the way to go. No reason to send back something you are not going to use.
boo wrote:I think with distinct all of the fields that are returned would need to match rather than just 1 or 2 of the fields, but if that is what you are looking for then distinct would be the way to go. No reason to send back something you are not going to use.
It would be the same result as array_unique() with a lot of cruft removed, so I'm pretty sure ~ankhmor is looking for it.