1.

How To Get The Number Of Characters In A String?

Answer»

You can use the "strlen()" FUNCTION to get 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

You can use the "strlen()" function to get 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



Discussion

No Comment Found