Announcement

Collapse
No announcement yet.

Cut string?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Gamefreak
    replied
    Just use this:

    PHP Code:

    $cut_string 
    substr($whole_string0strlen($whole_string)-1); 
    That will always cut the last character off.

    Leave a comment:


  • Dimava
    started a topic Cut string?

    Cut string?

    How do I cut the last character of a string, knowing that the last letter will always be "c" (without the quotes)

    thanks

    Dimava
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X