This is a discussion on What's the easiest way to remove characters from the end of a string in php? within the PHP Programming forums, part of the Web Development category; What's the easiest way to remove characters from the end of a string in php?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| //See the function substr(): $rest = substr("abcdef", 1, -1); // returns "bcde" //so to remove characters from the end of a string you can use: $rest = substr("abcdef", 0, -2); // returns "abcd" |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to remove space appearing before the string in textbox? | poornima | HTML, CSS and Javascript Coding Techniques | 5 | 01-23-2008 04:03 AM |
| What is the most user-friendly, easiest software to use to create my own Web site? | preet | HTML, CSS and Javascript Coding Techniques | 0 | 10-04-2007 02:38 AM |
| How to Get the Right Characters of a string in sql server? | kingmaker | Database Support | 3 | 08-01-2007 09:07 AM |
| What is the easiest way to download the contents of a URL with Perl? | sivaramakrishnan | Perl | 1 | 07-23-2007 04:38 AM |
| Which Graphics program would you say is easiest ? | killerkev06 | Web Design Help | 8 | 04-05-2007 03:08 PM |