Mega Code Archive

 
Categories / Php / Strings
 

Extracting the end of a string with substr()

<? print 'Card: XX'; print substr("this is a test. this is a test",-4,4); ?>