Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Question

Question Protected by Community Bot
Added specificity to title, added tags
Link
mickmackusa
  • 49.3k
  • 13
  • 98
  • 165

Remove the lasttrailing delimiting character from a delimited string

Post Reopened by Your Common Sense php Users with the php badge or a synonym can single-handedly close questions as duplicates and reopen them as needed.
Post Closed as "Duplicate" by samliew
remove duplicate link
Source Link

Possible Duplicate:
How do I remove all specific characters at the end of a string in PHP?

What is fastest way to remove the last character from a string?

I have a string like

a,b,c,d,e,

I would like to remove the last ',' and get the remaining string back:

OUTPUT: a,b,c,d,e

What is the fastest way to do this?

Possible Duplicate:
How do I remove all specific characters at the end of a string in PHP?

What is fastest way to remove the last character from a string?

I have a string like

a,b,c,d,e,

I would like to remove the last ',' and get the remaining string back:

OUTPUT: a,b,c,d,e

What is the fastest way to do this?

What is fastest way to remove the last character from a string?

I have a string like

a,b,c,d,e,

I would like to remove the last ',' and get the remaining string back:

OUTPUT: a,b,c,d,e

What is the fastest way to do this?

Post Reopened by samliew
Post Closed as "Duplicate" by samliew
Post Reopened by samliew
Active reading [<https://www.youtube.com/watch?v=1Dax90QyXgI&t=17m54s> <https://www.youtube.com/watch?v=1Dax90QyXgI&t=19m05s>]. The reference changed.
Source Link
Peter Mortensen
  • 31.3k
  • 22
  • 110
  • 134

Remove the last character from a string

Possible Duplicate:

PHP - Remove last character if it'sHow do I remove all specific characters at the end of a periodstring in PHP?

WhichWhat is fastest way to remove the last character from a string?

I have a string like

a,b,c,d,e,

I would like to remove the last ',' and get the remaining string back:

OUTPUT: a,b,c,d,e

What is the fastest way to do this?

Remove the last character from string

Possible Duplicate:
PHP - Remove last character if it's a period?

Which is fastest way to remove last character from string?

I have a string like

a,b,c,d,e,

I would like to remove last ',' and get the remaining string back

OUTPUT: a,b,c,d,e

What the fastest way to do this?

Remove the last character from a string

Possible Duplicate:
How do I remove all specific characters at the end of a string in PHP?

What is fastest way to remove the last character from a string?

I have a string like

a,b,c,d,e,

I would like to remove the last ',' and get the remaining string back:

OUTPUT: a,b,c,d,e

What is the fastest way to do this?

replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot
Loading
deleted 2 characters in body; edited title
Source Link
Jason
  • 15.4k
  • 23
  • 87
  • 119
Loading
insert duplicate link
Source Link
Loading
Post Closed as "exact duplicate" by Gordon, tereško, hakre, Jocelyn, Jason Sturges
Source Link
I-M-JM
  • 16k
  • 26
  • 80
  • 105
Loading
lang-php

AltStyle によって変換されたページ (->オリジナル) /