Length of a string in PHP

Measuring string length

strlen() returns the number of bytes in a string. For multibyte character counts, use the appropriate multibyte or grapheme function when that extension is available.

Welcome to plus2net.com
Length of the string : 23
\Welcome to plus2net.com= \"Welcome to plus2net.com\";
echo $string.'<br>';
echo \"Length of the string : \".strlen(Welcome to plus2net.com);

All Basic Codes


Subscribe to our YouTube Channel here



plus2net.com











PHP video Tutorials
✖
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
© 2000-2026 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer