cropping a string
From: mr_burns (bissatch_at_yahoo.co.uk)
Date: 07/31/04
- Next message: mr_burns: "prompting download using header()"
- Previous message: Zurab Davitiani: "Re: Learning PHP (5) -> cloning objects?"
- Next in thread: Geoff Berrow: "Re: cropping a string"
- Reply: Geoff Berrow: "Re: cropping a string"
- Reply: laidbak69_at_hotmail.com: "Re: cropping a string"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Jul 2004 15:25:05 -0700
hi,
how do i check the character length of a string and, if neccessary,
crop it down to a smaller string. for example, i have the following
string:
'i am a large string and need cropped to a bitesize chunk'
how do i find out how many characters are in this string?
also, once i have found this out (56) how do i crop it down to a
smaller size? for example, crop it to 15 characters:
'i am a large st'
cheers
burnsy
- Next message: mr_burns: "prompting download using header()"
- Previous message: Zurab Davitiani: "Re: Learning PHP (5) -> cloning objects?"
- Next in thread: Geoff Berrow: "Re: cropping a string"
- Reply: Geoff Berrow: "Re: cropping a string"
- Reply: laidbak69_at_hotmail.com: "Re: cropping a string"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|