I want to limit the character count of automatically generated page titles in php.
Can you come up with any php or jquery code that can do this for me, with me just entering the character count maximum I want in page titles (70 characters)?
I want to limit the character count of automatically generated page titles in php.
Can you come up with any php or jquery code that can do this for me, with me just entering the character count maximum I want in page titles (70 characters)?
What about something like this?
<title><?php echo substr( $mytitle, 0, 70 ); ?></title>