Tools, FAQ, Tutorials:
Counting the Number of Characters in PHP
How To Count the Number of Characters in a String?
✍: FYIcenter.com
You can use the "strlen()" function to count the number of characters in a string. Here is a PHP script example of strlen():
<?php print(strlen('It\'s Friday!')); ?>
This script will print:
12
⇒ Ways to Remove Leading and Trailing White Spaces in PHP
⇐ PHP Built-in Functions for Strings
2016-10-13, 2228🔥, 0💬
Popular Posts:
How To Set session.gc_divisor Properly in PHP? As you know that session.gc_divisor is the frequency ...
What is the "__init__()" class method? The "__init__()" class method is a special method that will b...
How to use the RSS Online Validator at w3.org? You can follow this tutorial to learn how to use the ...
How to search for the first match of a regular expression using re.search()? The re.search() functio...
How to add images to my EPUB books Images can be added into book content using the XHTML "img" eleme...