Base on the requirement of my client, I have to create a CSV file which has a lot of columns, and hundreds of rows. The header looks like this: SKU | category | description | image | small_image | thumbnail | price | color I need to read the data from other files and put Full Article…
Viewing 1 to 2 of 2 items
Php – Remove the 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 Here is what i did echo rtrim("a,b,c,d,e,", ",") Hope it helps ^^