Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

Substring in PHP

  1. <?php
  2. echo substr(string StrExample,int start,int length);
  3. ?>

Example #1
  1. <?php
  2. echo substr("Hello world!",6,5);
  3. ?>

The output of the above code will be
  1. world