Scripts and functions that I have written or found useful

Shorten string length

September 26th, 2007 Posted in PHP

$query = substr($query,0,-1);

Shortens the string by one character. Change the second value to remove more or see php.net/substr for more information

Post a Comment