Announcement

Collapse
No announcement yet.

Cut string?

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

  • 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
    NXSupport Admin

  • #2
    Just use this:

    PHP Code:

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

    Comment

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