in reply to Re: substr question
in thread substr question
I don't see how that's ever useful. If the string has less than 100 characters, it returns nothing. If the string has 100 or more characters, it returns either the same as the OP's solution or too many characters. (I'm assuming 100 is a maximum, such as a screen width or a field width.)
You've also used a different definition of "word" than everyone else such that cutting "don't" into "don" and "'t" is acceptable, and so is cutting "don't" into "don'" and "t".
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: substr question
by stevenmay (Initiate) on Jun 19, 2010 at 02:43 UTC | |
by ikegami (Patriarch) on Jun 19, 2010 at 04:06 UTC | |
by stevenmay (Initiate) on Jun 19, 2010 at 05:24 UTC | |
by ikegami (Patriarch) on Jun 19, 2010 at 06:22 UTC | |
by stevenmay (Initiate) on Jun 19, 2010 at 16:25 UTC |