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, 2421🔥, 0💬
Popular Posts:
How to Build my "sleep" Docker image from the Alpine image? I want the container to sleep for 10 hou...
How to convert a JSON text string to an XML document with PHP language? Currently, there is no built...
How to use "link" command tool to link objet files? If you have object files previously compiled by ...
What Is HTML? HTML (HyperText Markup Language) is the standard markup language for creating Web page...
How To Copy Array Values to a List of Variables in PHP? If you want copy all values of an array to a...