It does not make sense to repeat the same assignment, since the subsequent assignments will have no net effect. Are you trying to repeat the character in a string or an array? If so, use [man]str_repeat/man for a string and [man]array_fill/man for an array.