Support the ongoing development of Laravel.io →
Laravel Views
Last updated 2 years ago.
0
moderator

It just result in 1 AND 2 AND 3 AND

I don't know what you want to get and what your result is, can you explain that?

0

.= will surely work, but have you thought about join?

https://secure.php.net/manual/en/function.join.php

$array = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10'];
echo join(' AND ', $array);
Last updated 6 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Ajay ajaykumar9711 Joined 21 Mar 2018

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.