F
Filament17mo ago
ghc

Split the elements in an array and pass them to ->columns()

I have a field to check the number of people who have been selected. I first calculate it in the module and then pass an array. However, in this way, each piece of data will directly display the elements in the array. So I used foreach to visit the array in sequence and pass it out. However, it will encounter the error Argument #1 ($columns) must be of type array, int given. How should I modify it? If you need more information, please let me know.
3 Replies
ghc
ghcOP17mo ago
This is a program that will print an array.
ghc
ghcOP17mo ago
This is the program that I tried to modify but failed.
ghc
ghcOP17mo ago
his is the program that calculates and returns an array from the module.
Want results from more Discord servers?
Add your server