[wd_asp elements=’search’ ratio=’100%’ id=1]

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’