I want to automatically add " " between array values. My array is sent from the form and I can break it down and get the values. İ need to create string like this:
$data = $new['1']." ".$new['2']." \"...
I'm having trouble because array values are a number variable. How can i solve this problem?
$title = $request['title'];
$title = explode("
", $title);
foreach($title as $titl){
$tit = rtrim($titl);
$a[] = $tit;
}
$a1 = array_filter($a);
$new = array_values($a1);
$count = count($title);