PHP substr() May 23, 2012 Pramod T P It returns part of a string Example <?php echo substr(“phpcode”,2,4); ?> Output pcod