Traditional recovery tools (like WinRAR’s built-in feature, RAR Password Cracker, or John the Ripper) use:
return implode('', $combinations);