Mega Code Archive

 
Categories / Php / Strings
 

Extracting Part of a String with substr()

<?php     $test = "this is a test";     print substr($test,6);      print substr($test,6,2); ?>