How to fetch a value as a string in laravel?

Solution 1:

You can use implode...

implode("|",$type);