Re: ABout the website

From: Date: Wed, 22 Feb 2006 15:06:49 +0000
Subject: Re: ABout the website
References: 1  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-30647@lists.php.net to get a copy of this message
On Wed, 22 Feb 2006, magick wrote: > I think php.net would be much easier for the "newcomers" at PHP if you gave > full examples. > Currently every examples on any function at php.net are incomplete, just > snippits in which you have to "fill in the blank". > > Here is a very good example (this is taken from the str_replace page) > > // Provides: You should eat pizza, beer, and ice cream every day > $phrase = "You should eat fruits, vegetables, and fiber every day."; > $healthy = array("fruits", "vegetables", "fiber"); > $yummy = array("pizza", "beer", "ice cream"); > $newphrase = str_replace($healthy, $yummy, $phrase); > > Obviously that won't work unless you add something like echo $newphrase; which > someone "new to the game" might not realize. > > php.net caters to those that know, and forgets about those that don't! I don't agree with that, I think our documentation is much better than most other project's. However, if you want to contribute with patches to improve the documentation feel free to do so. regards, Derick

« previous php.mirrors (#30647) next »