Re: Re: Bug #16681 Updated: Request new words(), word(), wordindex(), wordlength() functions]
| From: | Daniel Lorch | Date: | Sun, 21 Apr 2002 20:17:22 +0000 |
| Subject: | Re: Re: Bug #16681 Updated: Request new words(), word(), wordindex(), wordlength() functions] | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-1238@lists.php.net to get a copy of this message | ||
Hi,
> I'll vote for good and eficient code than educational. Or do you in
> php-dev make educational extensions? ;-)
thanks for the feedback.
please give me some time to get accustomed to the PEAR-coding rules.
I'm currently reading other peoples' sources.
> BTW If you finally add a String class I would like to contribute with a
> "human friendly implode" function:
> $opts = array("Yes", "No", "Perhaps", "Sure");
> print String::humanImplode(',', 'or', $opts);
> Output: "Yes, No, Perhaps or Sure"
sounds like a good idea. functions like word_count() do not appear to
be fitting into the existing categories. I will start a new class with
only string manipulating functions.
-daniel