# Number of characters

**URL:** <https://forum.kirupa.com/t/number-of-characters/67436>\
**Category:** programming\
**Created:** [October 15, 2004, 9:46pm UTC](https://forum.kirupa.com/t/number-of-characters/67436 "2004-10-15T21:46:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![imagined](https://avatars.discourse-cdn.com/v4/letter/i/a87d85/32.png) [@imagined](https://forum.kirupa.com/u/imagined)\
**Post date:** [October 15, 2004, 9:46pm UTC](https://forum.kirupa.com/t/number-of-characters/67436/1 "2004-10-15T21:46:17Z")

</div>

I’m making this form and the validation. I want to know how many characters the user entered on Album Name and Album Description.

How can I get the number of characters on variables $albumName and $albumDescription?

I want to keep the Album Name at less than 255 characters and the Album Description at less than 500 characters.

Thanks :tb:
