&$code) { $c = $code; $code = [$c, !isset($old_icons[$icon])]; if (!isset($old_icons[$icon])) { $new ++; } } } file_put_contents($out, $start_js . json_encode($categories) . $end_js); echo "Found $count icons, ($new new) in $count_cats categories\n";