A blog & community for non-professional web designers, programmers, webmasters, and other web savvies.

Total Characters

February 28, 2011 - 12:00am -- Thomas

This script will display how many characters your string is.

<?php
/*****************
--Total Characters
--More PHP Scripts at
--http://icecaves.net/tags/php
*****************/
$text = "Put your text here and php will calculate how many characters your string is. Put a backslash before any double quotes you use.";
$total_characters = strlen($text);
echo
"<b>String:</b> $text<br><b>Character Count:</b> $total_characters";
?>
Code Preview: 
String: Put your text here and php will calculate how many characters your string is. Put a backslash before any double quotes you use.
Character Count: 127
Tags: 
Forum Board: 

@IceCaves on Twitter

    Stay Connected

    Twitter Facebook Tumblr Google+ Glaciallis Google RSS

    *Follow us on Twitter or Facebook to also follow minor site updates that don't make it to the homepage news.