Skip to content
Advertisement

How to restart loop with different variable in php/html

as you can see im doing a loop as below. There are 2 data set involved:

JavaScript

How do i restart this same loop by using $transaction_list_completed as the variable in the foreach statement?

Suggestion to copy the loop is not what im looking for (maybe if no other solution) as the html content for this Modal consists of hundreds of code line.

Advertisement

Answer

You could merge the arrays:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement