test.php:
file:test2.php
function testSubstring($string) { substr($string, 0, 5); }
title:Below is an example of PHP substring:
function test() { echo "hello"; }