This is making me crazy!
Within a {exp:channel:entries} tag, the following code
<?php echo "{avatar_filename}"; ?>outputs the avatar filename + extension as it should.
However, the following code
<?php echo substr("{avatar_filename}",0,strlen("{avatar_filename}")-4); ?>outputs “{avatar_filen”.
I know there are other ways to get just the filename. That’s not the point. I’m just wondering why in heck the 2nd example isn’t echoing correctly???