Skip to main content
2 of 5
edited tags
rolfl Mod
  • 98.2k
  • 4
  • 117
  • 238

One-liners and other narrowed-down reviews

Every once in a blue moon, a question gets posted (often as a new user's first post) where the OP is asking a quite specific question about very minimalistic code, for example:

if (strstr($url, "?")) { $url = strstr($url, "?", true); } 

There is something to say about this code, of course. But does it qualify for a code review?

Mathieu Guindon
  • 75.6k
  • 4
  • 99
  • 243