PHP rtrim removing additional character. Is this a bug?
I wanted to remove the time from a date/time string. The time is always “T00:00:00” so I use “rtrim” to strip that section from the string.
I wanted to remove the time from a date/time string. The time is always “T00:00:00” so I use “rtrim” to strip that section from the string.