Answers for "php count of string"

PHP
0

counting a string in php

strlen('your strings here!');
Posted by: Guest on May-10-2021
1

get number of chars ina string php

$name = "Perú"; // With accent mark
echo strlen($name); // Display 5, because "ú" require 2 bytes.

$name = "Peru"; // Without accent mark
echo strlen($name); // Display 4
Posted by: Guest on May-13-2020
-1

find string lenght in php

Use the PHP strlen() function
Posted by: Guest on December-16-2020

Browse Popular Code Answers by Language