Question #189   Submitted by Answiki on 11/11/2020 at 06:37:42 PM UTC

How to get string length in PHP?

Answer   Submitted by Answiki on 10/25/2021 at 11:18:52 AM UTC

In PHP, the function strlen(string) returns the length of a string :

// Displays 6
echo strlen('abcdef'); 

$str = "abcdefg";
// Displays 7
echo strlen($str);

4 events in history
Answer by Answiki on 10/25/2021 at 11:18:52 AM

In PHP, the function strlen(string) returns the length of a string :

// Displays 6
echo strlen('abcdef'); 

$str = "abcdefg";
// Displays 7
echo strlen($str);

Answer by Answiki on 11/11/2020 at 06:41:14 PM

In PHP, the function strlen(string) return the length of a string :

// Displays 6
echo strlen('abcdef'); 

$str = "abcdefg";
// Displays 7
echo strlen($str);

Answer by Answiki on 11/11/2020 at 06:40:18 PM

In PHP, the function strlen(string) return the length of a string :

// Displays 6
echo strlen('abcdef'); 

Question by Answiki 11/11/2020 at 06:37:42 PM
How to get string length in PHP?
# ID Query URL Count

Icons proudly provided by Friconix.