I'm creating something that places pictures in a kind of newsletter with the name of what is displayed on the picture under it. These names are received from a database. There are some names that are too large, so I wanted to create a limiter:
$limiter = substr($image_name, 0, 10) . "...";
$image_name is the name of picture received from the database.
Really simple, but that's why I am a newbie 😃
Now I hoped it would cut the name after 10 chars, but it does only show the first letter of it. I searched on the net but they said that this would work, so that's why I'm asking here.
Any solutions?