Skip to content
Advertisement

How to remove spaces from my php

When I run my php code it shows the content perfectly, but there’s a space after start and before stop. How do I remove all spaces? I thought that’s what I was doing with trim?

JavaScript

Advertisement

Answer

You should trim all the whitespace characters, like this:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement