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, ∼2675🔥, 0💬
Popular Posts:
How To Avoid the Undefined Index Error in PHP? If you don't want your PHP page to give out errors as...
How To Read Data from Keyboard (Standard Input) in PHP? If you want to read data from the standard i...
How To Truncate an Array in PHP? If you want to remove a chunk of values from an array, you can use ...
How To Remove Slashes on Submitted Input Values in PHP? By default, when input values are submitted ...
How to add request URL Template Parameters to my Azure API operation 2017 version to make it more us...