<?php $chars = ["a", "b", "c"]; var_export( array_reduce( $chars, fn($result, $v) => array_merge($result, array_fill(0, 3, $v)), [] ) );
You have javascript disabled. You will not be able to edit any code.