- substr: documentation ( source)
- strpos: documentation ( source)
- stristr: documentation ( source)
- print_r: documentation ( source)
<?php
$string = "On first glance, the following appears to output 'true' ";
print_r(substr($string, "true"));
print_r(stristr($string, " ' "));
print_r(substr($string, strpos($string, " ' ")+1, 4));
print_r(substr($string, strpos($string, " ' "), 4));