phpeveryday.com

The best tutorial of php, php framework, php strategies, object oriented oriented,


String: Repeating Strings

Tag: string, str_repeat   Category: PHP Basic
post: 03 Feb 2008 read: 126


PHP String Tips: If we want to repeat string, we can use str_repeat. For example, you want to write someone cry "uh uh uh" or laugh "ha ha ha".


$cry = "hu ";
$cries = str_repeat($cry, 4);



| Give Your Opinion | Recommend
Share and Bookmark to: These icons link to social bookmarking sites where readers can share and discover new web pages.
digg del.icio.us technorati Ma.gnolia BlinkList

Recommended articles by other readers:
Web Services: How PHP Kiss VB.NET? (Part 1)
Chart: How to Build Cool Animation Real Time Chart
Joomla: Fast Road to Understand Component Programming
Email: Send Attachement Mail
mod_rewrite - Part 1: create your "fantasy" URL

What do You Think?
Your Name *:
Email *:
(Will not be published)
Website/URL:
Your Comment *:
* Required


615
posting