Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php print character x times

str_repeat( string $string , int $times )

// example
echo '1' . str_repeat( '0' , 4 );

// 10000
 
PREVIOUS NEXT
Tagged: #php #print #character #times
ADD COMMENT
Topic
Name
4+1 =