<p>What's the best way to format this for readability?</p>

<pre><code>if (strpos($file, '.jpg',1) &amp;&amp; file_exists("$thumbsdir/$file") == false || strpos($file, '.gif',1) &amp;&amp; file_exists("$thumbsdir/$file") == false || strpos($file, '.png',1) &amp;&amp; file_exists("$thumbsdir/$file") == false) {
  createThumb("$gallerydir/$file", "$thumbsdir/$file",$thumbsize);
  fwrite($log,date("Y-m-d")." @ ".date("H:i:s")."  CREATED: $thumbsdir/$file\n");
}
</code></pre>

```
```
if ((strpos($file, '.jpg',1) ||
     strpos($file, '.gif',1) ||
     strpos($file, '.png',1))
    && file_exists("$thumbsdir/$file") == false)
{
  createThumb("$gallerydir/$file", "$thumbsdir/$file",$thumbsize);
  fwrite($log,date("Y-m-d")." @ ".date("H:i:s")."  CREATED: $thumbsdir/$file\n");
}
```
```