I’m looking for an easy way to combine two arrays.
$lang = array('de' => 'german', 'es' => 'spanish', 'nl' => 'dutch');
I have X sites which should have a table like this:
language value1 value2 value3
--------------------------------------
de 123 56 097
en 84 129 123
es 0 0 0
nl 0 0 0
Site Y could look like this:
language value1 value2 value3
--------------------------------------
de 9 12 123
en 32 65 156
es 0 0 0
nl 23 12 89
This table could differ on every site, but I want every language to be displayed even if it has no values. The list of languages should be separated to extend it later.
I was doing this from the CLI, so there’s no HTML structure to it. I’m not sure if I fully understood everything you were trying to do, but here’s what I have:
Output: