$a= 5; for ( $b=1; $b <= $a; $b++ ) { $c[]= $a; } print implode( '', array_reserve( $c ) );