1. Home
  2. Docs
  3. PHP Style Guide
  4. Whitespace


Use tabs for whitespace in your code, not spaces. This may seem like a small thing, but using tabs instead of whitespace allows the developer looking at your code to have indentation at levels that they prefer and customize in whatever application they use. And as a side benefit, it results in (slightly) more compact files, storing one tab character versus, say, four space characters.

Was this article helpful to you? Yes No

How can we help?