simonpearce
ISP
Hello! I'm using this short piece of code to make $shortusername the first 20 characters of the variable $FORM{'domain'}.
$shortusername = substr($FORM{'domain'},0,20);
. . . but I need to be able to remove any hyphens that might be in the $FORM{'domain'} variable - how would I go about doing that?
Thanks in advance.
Simon
$shortusername = substr($FORM{'domain'},0,20);
. . . but I need to be able to remove any hyphens that might be in the $FORM{'domain'} variable - how would I go about doing that?
Thanks in advance.
Simon