Answers for "php array string length"

PHP
30

php length of array

<?php
	$arr = ["one", "two", "three", "four"];
	echo count($arr);
  ?>
Posted by: Guest on December-29-2019
2

php string length

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

Browse Popular Code Answers by Language