First, I try without a space, rtrim($arraynama, ",");
and get an error result.
Then I add a space and get a good result:
$newarraynama = rtrim($arraynama, ", ");
More Related Contents:
- After all these code still i cannot load csv to mysql [closed]
- Sum up array values [closed]
- how to create connection , vtiger, php
- How to get time difference in minutes in PHP
- Best XML Parser for PHP [duplicate]
- Reference: What is a perfect code sample using the MySQL extension? [closed]
- PHP AES encrypt / decrypt
- PHP, get file name without file extension
- URL Friendly Username in PHP?
- Multidimensional array iteration
- What is ?: in PHP 5.3? [duplicate]
- Laravel: connect to databases dynamically
- Print time in 15-minute increments between two times in the same day
- Show results while script is still executing
- Executing php with crontab
- String contains any items in an array (case insensitive)
- How to pass a PHP variable using the URL
- Detect mysql update/insertion failure due to violated unique constraint
- Issue in installing php7.2-mcrypt
- Codeigniter echoing [::1] instead of localhost
- PHP – Secure member-only pages with a login system
- dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib error running php after installing node with brew on Mac
- How to disable redirection after login_check in Symfony 2
- Call to undefined method DOMDocument::getElementsByClassName() [duplicate]
- PHP upload image
- Regex matching table rows in HTML [duplicate]
- PHP Function with Optional Parameters [duplicate]
- PHP – detect whitespace between strings
- file_get_contents() error
- using mod_rewrite with XAMPP and windows 7 – 64 bit?