Regular Expressions are your friends.
Two and a half years ago, when I first dove into web development, I wasn’t very familiar with regular expressions. They certainly didn’t look regular to me, looked more like someone’s keyboard exploded. Now, having figured out a thing or two about them, I came across the following lines: $pos = strpos ( $this->user->privs, ‘del’); […]