Append to beginning of string until length = x
<p>I'm trying to write a loop that appends a number to the beginning of a string until it is 15 characters long.  What am I missing?</p>

<pre><code>$i = rand(1,9);
while (strlen($fileNameNS &gt; 15)){
    $file13 = $i . $i . $fileNameNS;
}
$i++;
</code></pre>
