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, ∼3339🔥, 0💬
Popular Posts:
Where to find tutorials on JSON (JavaScript Object Notation) text string format? I want to know how ...
How to Install Docker Desktop 2.5.0 on Windows 10? You can follow this tutorial to Install Docker De...
How to use the Atom Online Validator at w3.org? w3.org feed validation service is provided at http:/...
What's Wrong with "while ($c=fgetc($f)) {}" in PHP? If you are using "while ($c=fgetc($f)) {}" to lo...
How to convert a JSON text string to an XML document with PHP language? Currently, there is no built...