<slide title="String Manipulation">
<example title="substr" result="1"><![CDATA[<?php
 $str = "Fast String Manipulation";
 echo substr($str,0,4) . substr($str,-9);
?>]]></example>

<h3>explode</h3>
<example title="explode" result="1"><![CDATA[<?php
 $a = explode(":", "This:string:has:delimiters.");
 while (list(,$value) = each($a)) {
     if (strcmp($value, "has") == 0) {
         echo "had ";
     } else echo $value." ";
 }
?>]]></example>

</slide>
