Answers for "length of string in bytes in php"

PHP
12

string length php

<?php
$str = 'php';
echo strlen($str); // 3

$str = 's p a c e';
echo strlen($str); // 9
?>
Posted by: Guest on July-09-2020

Code answers related to "length of string in bytes in php"

Browse Popular Code Answers by Language