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, 2328🔥, 0💬
Popular Posts:
How To Protect Special Characters in Query String in PHP? If you want to include special characters ...
How To Access a Global Variable inside a Function? in PHP? By default, global variables are not acce...
How to use the RSS Online Validator at w3.org? You can follow this tutorial to learn how to use the ...
How to create a navigation file like navigation.xhtml for an EPUB 3.0 book? At least one navigation ...
Can Two Forms Be Nested? Can two forms be nested? The answer is no and yes: No. You can not nest two...