Results 1 to 6 of 6

Thread: Cut off last char of a string

Threaded View

  1. #1

    Thread Starter
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Cut off last char of a string

    PHP Code:
    $str substr($str,strlen($str)-1); 
    i thought that would take my string, and take the last char off, how do i do it?

    Also, is the newline character "\n" because it isnt working correctly..
    Last edited by |2eM!x; Nov 23rd, 2005 at 01:44 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width