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, ∼3406🔥, 0💬
Popular Posts:
Where to get the detailed description of the JSON.stringify() Function in JavaScript? Here is the de...
How To Access a Global Variable inside a Function? in PHP? By default, global variables are not acce...
Where to get a JSON.stringify() Example Code in JavaScript? Here is a good JSON.stringify() example ...
What is EPUB 2.0 Metadata "dc:creator" and "dc:contributor" elements? EPUB 2.0 Metadata "dc:creator"...
How to include additional claims in Azure AD v2.0 id_tokens? If you want to include additional claim...