The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Hi all,
I'm looking for a PHP function that can strip off excessed characters. Like I limited $mystring is only 10 characters and if someone enter the value for $mystring over 10 characters, then those excessed characters will be stripped. Any help would be much appreciated.
|
|
#2
|
|||
|
|||
|
You can either make the corresponding database column VARCHAR(10) or use:
PHP Code:
|
|
#3
|
||||
|
||||
|
OK, I figured it out now, Thank you filburt1
|
![]() |
|
|