add string n times php code example Example: multiply a string php str_repeat ( string $input , int $multiplier )