Twentyoneth Posted May 5, 2006 Share Posted May 5, 2006 I would like someone to point me in the right direction, thats about it. Erm, I am wanting to display only a certain ammount of characters in a variable...like this:$var = "123456789123456789";echo 1st 12 characters:"123456789123" Quote Link to comment https://forums.phpfreaks.com/topic/9099-echo-a-certain-amount-of-characters/ Share on other sites More sharing options...
toplay Posted May 5, 2006 Share Posted May 5, 2006 substr()[a href=\"http://us2.php.net/manual/en/function.substr.php\" target=\"_blank\"]http://us2.php.net/manual/en/function.substr.php[/a] Quote Link to comment https://forums.phpfreaks.com/topic/9099-echo-a-certain-amount-of-characters/#findComment-33474 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.