Answers for "how to get length of a variable on php"

PHP
-1

Get PHP String Length

phpCopy<?php
$mystring = "This is my string";
echo("The string length in bytes is: ");
echo(strlen($mystring));
?>
Posted by: Guest on April-23-2021

Code answers related to "how to get length of a variable on php"

Browse Popular Code Answers by Language