Search
Generic filters
Exact matches only

Array Implode

28th March 2014

Php - Arrays

php codehaven

When adding to an array it places the word AND inside, (this is hidden) so when you use the ‘[ ]’ brackets you can implode the array with the code below, instead of ‘echo $conditions[0]’ and incrementing by one to see all of them….handy!
So below will output ‘Mike AND Bob AND Barry’

Was this code snippet helpful?

Comment on this Code Snippet?