I have a json file that looks something like this: I would like to display a set of option tags with countries as text and some additional attribute declarations like this: I tried something like this to display the countries, but I can’t display the list of cities. Answer The cities are in a sub array so you need to
Tag: array-column
Format number in array within an array_sum
I have a view in a laravel project where I have to print the sum of some array columns. I Have this kind of code to achieve the result: It works fine. But there is a problem. The numeric columns have a formatted italian currency number like this: 1.267,76 € So the sum is printed wrong, because numbers have wrong