d22552000 Posted August 12, 2007 Share Posted August 12, 2007 How do I take a string... say: "5 + 5 + 5 +" and take off the last two charcters... so the outcome would be "5 + 5 + 5" Quote Link to comment Share on other sites More sharing options...
Orio Posted August 12, 2007 Share Posted August 12, 2007 Use substr(): <?php substr($str, 0, -2); ?> Orio. Quote Link to comment 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.