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, ∼3307🔥, 0💬
Popular Posts:
Where to find tutorials on PHP language? I want to know how to learn PHP. Here is a large collection...
How to read Atom validation errors at w3.org? If your Atom feed has errors, the Atom validator at w3...
How to create the Hello-3.0.epub package? I have all required files to create Hello-3.0.epub. To cre...
How to use the built-in "context" object in Policy expressions? The built-in "context" object can be...
How To Protect Special Characters in Query String in PHP? If you want to include special characters ...