ABout the website
| From: | magick | Date: | Wed, 22 Feb 2006 14:43:55 +0000 |
| Subject: | ABout the website | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-30646@lists.php.net to get a copy of this message | ||
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!