Thread: chop help
Results 1 to 2 of 2
08-10-2005, 05:44 PM #1
Hi does anyone know if it possible to restrict the number of charectors before you chop it?
For example if the input is a postcode like:- CV11 8JJJ and you wanted to restrict the postcode to being CV11 8JJ?? or a relevant UK postcode?
08-17-2005, 10:54 PM #2
Re: chop help
do you mean like:
if i have the number "1234567890" but i want to limit it to 5 characters, so it will make "12345" and delete the rest of it?
$a = substr("thisIsAnExample", 0, 6);