Answers for "php get string leight"

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
2

php string length

$str = 'abcdef';
echo strlen($str); // 6
Posted by: Guest on July-14-2020

Browse Popular Code Answers by Language