menu

Questions & Answers

Foreach loop in php (string concatenation)

How can I do this from the given loop in php

Name Email System

Patrick Lester    test123@gmail.com        DEM
John Doe          johdoe@gmailcom          DAM
Patrick Lester    test123@gmail.com        DAM
John Doe          johdoe@gmailcom          DEM

Output:

NAME Email System

Patrick Lester    test123@gmail.com        DEM, DAM
John Doe          johdoe@gmailcom          DAM, DEM
Comments:
2023-01-11 09:29:29
Please provide a bit of code, showing how do you treat the loop you are mentioning. Is it a foreach() look from data in an array? A while loop from data in your database? We will need a bit more to be helpful.
2023-01-11 09:29:29
What would you like to do? Filter the database content and display it?
2023-01-11 09:29:29
What "given loop"? Did you forget to include it in your question?
Answers(0) :