Jump to content

substr showing strange letter. why is that?


Recommended Posts

Hi, I have this code

<?php			 $description = get_post_meta($post->ID, "mabp_description", true);  			 if ((strlen($description) > 300)) { echo substr($description, 0, 300)." .."; } else echo $description; ?>

on http://flash-games-free.net/arabic/ for some reasons it displaying strange letter at the end of the letters group. I have attached an image to explain the idea in a better way. this is cause the page not to validate http://validator.w3.org/check?uri=http%3A%2F%2Fflash-games-free.net%2Farabic%2F&charset=%28detect+automatically%29&doctype=Inline&group=0 Could you please help me to sort out this issue. Thanks


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...