Skip to content
EscapeQuotes

EscapeQuotes

Blink your leds!

Menu

  • ESP8266
  • Micro:bit
  • Raspberry PI
  • Arduino
  • CodeIgniter

tabs

PHP remove multiple whitespaces

Replacing multiple spaces with a single space simple single line of php code: $output = preg_replace(‘/\s+/’, ‘ ‘, $input); This mean that spaces, tabs or line breaks (one or more) will be replaced by a single space. Replace multiple spaces

escapequotes October 25, 2016October 25, 2016 php No Comments Read more
Copyright © 2022 EscapeQuotes. Powered by WordPress. Theme: Spacious by ThemeGrill.