Limiting Strings in PHP

Miscellaneous Forums/General Discussion/Limiting Strings in PHP

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

If you are getting the data from a web page, you can set the maxlength attribute of the input field.

you can also use php to chop the end off the string with the substr(<string>, <start>, <length>) command
something like:
$string = "my value"
$string = substr($string, 0,6)