-2
I am printing a contents of an array into a div. The problem is that when the array has multiple data it passes to div.
$titles = "";
foreach($array_resultados as $key =>$value){
$titles .= "<div>".$value['title']."</div>";
}
And my div
echo"
<td class='cal_today'>
<div class =divtoday>
".$titles."</div>
</td>";
I wanted to print out all the data without any passing the div.
Which of the
div
is that it passes?– Jorge B.
is the top div, which passes to the div divtoday.
– akm
If you [Dit] the question to clarify doubts, the person who voted negative may reverse the vote.
– brasofilo
How to pass the div?
– William Lima
What is the reason behind a
<div>
for each element of array?– Guill