rtrim('test,,,,,', ',');
See the manual.
More Related Contents:
- How to select first 10 words of a sentence?
- How to remove the leading character from a string?
- Explode string on commas and trim potential spaces from each value
- PHP ltrim behavior with character list
- Use of undefined constant STDIN – assumed ‘STDIN’ in C:\wamp\www\study\sayHello.php on line 5
- Trim leading white space with PHP?
- Facebook messenger bot Webhook not working [closed]
- How to calculate the multiplicator in a sum like sum += sum*(mulu^n)
- PHP string explode with regular expression? [closed]
- Send email with PHP from html form on submit with the same script
- Fatal error: Call to undefined function mysqli_connect()
- PHP: running scheduled jobs (cron jobs)
- Find difference between two datetimes and format at Y-m-d H:i:s
- Can I rely on PHP php.ini precision workaround for floating point issue
- Laravel – Session store not set on request
- Is it possible to overload operators in PHP?
- PHP : writing a simple removeEmoji function
- Concatenating a string and primary key Id while inserting
- Php : Convert a blob into an image file
- How do I construct a cross database query in PHP?
- Laravel mail: pass string instead of view
- php strtotime “last monday” if today is monday?
- In PHP is it possible to inspect content of a Zip file without extracting its content first?
- set session in database in php
- What does a . (dot) do in PHP?
- HTML Form POST to PHP page [closed]
- How can I change php-cli version on Ubuntu 14.04?
- Checking for an empty result (PHP, PDO, and MySQL) [duplicate]
- How to use mysqli_query() in PHP?
- How to get files in FTP folder sorted by modification time