Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

convert array to string laravel

collect([1, 2, 3, 4, 5])->implode('-');

// '1-2-3-4-5'


/************** Or you can do ****************/

$arr = array('Hello','World!','Beautiful','Day!');
echo implode(" ",$arr);
//Hello World! Beautiful Day!
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #array #string #laravel
ADD COMMENT
Topic
Name
1+6 =