<p>I am looking for a way to pull the first 100 characters from a string variable to put in another variable for printing.  </p>

<p>Is there a function that can do this easily?</p>

<p>For example:</p>

<pre><code>$string1 = "I am looking for a way to pull the first 100 characters from a string variable to put in another variable for printing.";
$string2 = 100charfunction($string1);
print $string2
</code></pre>

<p>To get:</p>

<pre><code>I am looking for a way to pull the first 100 characters from a string vari
</code></pre>

```
```
$small = substr($big, 0, 100);
```
```
For
String Manipulation
here is a page with a lot of function that might help you in your future work.