Site menu

CodeCook.io

  • Languages
    • C
    • C++
    • CSS
    • Git
    • HTML
    • Java
    • JavaScript
    • jQuery
    • PHP
    • Python
    • Ruby
    • Scala
  • repeat
  • string

PHP - Repeat string

Repeat string a set number of times.

0
443
  • Share on Facebook
  • Share on Google+
  • Share on Twitter
str_repeat({{string}}, {{times}})
php
  • documentation

Notes

last update: Dec. 4, 2014

Advertisement

This project is hosted on DigitalOcean, try it and support us

Related concept

  • String concatenation

Other language

  • Scala
  • Python
  • JavaScript
  • Ruby

Random task

  • Get all fields in Django model
  • Font-face
  • Reverse string
  • List installed apache2 modules
  • Get git remote branch
  • Blog
  • About
  • License