How To Get the Number of Characters in a String

Q

How To Get the Number of Characters in a String? - PHP Script Tips - PHP Built-in Functions for Strings

✍: FYIcenter.com

A

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

2007-04-22, 4715👍, 0💬