S
S
Stepan2015-02-09 17:50:58
MySQL
Stepan, 2015-02-09 17:50:58

How to merge data from one loop?

The table stores data with type photo and photoText
How to organize it into one block. If only one foreach loop is used for output, but you need to write them somehow into a separate div

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Iron Sens, 2015-02-09
@xoma2

$result = "";
foreach ($arr as $key => $value) {
    $result += $value;
}
echo $result;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question