Ich hoffe, das passt hier rein, hat allerdings nichts mit Logd zu tun.
Sind arrays allgemein performence kostend oder sind sie eher performence "günstig"?
Es gibt ja nun mehrere Möglichkeiten für eine bestimmte Zahl etwas ausgeben zu lassen.
z.b Ifabfragen
[php]If ($row['x']=='0'){
echo('Hallo Anpera');
} else if $row['x']=='1'){
echo('hallo Kevz');
} else if $row['x']=='2'){
echo('hallo xy');
}....[/php]
Das gleiche als array [php]$hallo = array(0=>'Hallo Anpera',1=>'Hallo kevz',2=>'Hallo xyz');
echo($hallo[$row['x']]);[/php]
Ist jetzt ein Beispiel, auch die Namen sind mal ganz schnell und wahlos gewählt. ist array da nun in der performence besser oder allgemein ic/case abfragen?