After more than a decade of feverish Q&A, is it finally time to start chipping away at the least valuable answers? Manual-link-only answers are merely acting as traffic routers. Instead of actually demonstrating the resolving technique, they just point to the manual. They are never the only answer on the page, but they are certainly the least generous. We don't want RTM comments under the question, so why tolerate them as answers? Were these posts just the consequence of FGITW posting? ...it doesn't really matter.
I've made a simple SEDE search for manual-link-only answers advising the explode()
function to PHP-tagged questions. Here's what I've found:
- 2011: I think that explode() is enough. (0 score, not accepted)
- 2011: You can use the explode function. (highest score, accepted answer)
- 2011: You should just use PHP's explode function :) (lowest score, accepted answer)
- 2009: http://php.net/explode edit: damn, Rob was faster (+3 score, not accepted)
- 2010: Check out the explode() function, and use + as your delimiter. (0 score, not accepted; goes above and beyond to advise a delimiter)
- 2010: You want explode() instead. (+2 score, accepted answer, tied for lowest score)
- 2011: You can use the PHP explode() function. (0 score, not accepted)
- 2011: just use the function explode look at http://php.net/explode (+4 score, not accepted)
- 2011: If you "know how to split the string up", then you already know that this process produces an array. (0 score, not accepted)
- 2011: The explode function will get you what you need. (0 score, not accepted)
- 2011: You are correct. explode is the best function for this. (-1 score, not accepted)
- 2011: @Deceze blows away the competition with generosity here
- 2011: Use the explode() function. (0 score, not accepted)
- 2011: See PHP's explode() function (0 score, not accepted)
- 2011: Try using explode function. (+2 score, accepted answer)
- 2011: I myself cannot remember the parameters for every function, so just go to the php.net website and search for the explode function. (-2 score, not accepted)
- 2012: You can use http://pl.php.net/manual/en/function.explode.php (-3 score, not accepted)
- 2012: Use explode function to split the string into array. (+1 score, not accepted)
- 2012: Use explode function (+1 score, not accepted)
- 2012: use explode with <br>http://php.net/explode (0 score, not accepted; goes above and beyond to advise a delimiter)
- 2012: You could explode each result using the | as a deliminator. (0 score, not accepted; goes above and beyond to advise a "deliminator" -- which of course natively says "hasta la vista, baby")
- 2012: Have you tried the explode() function? (+2 score, not accepted)
- 2013: You should have a look at explode in the php manual. (0 score, not accepted)
- 2013: Exploding the value should do the trick: http://php.net/explode (+3 score, not accepted)
- 2013: Look up the explode() function. (+1 score, not accepted)
- 2013: Use explode(). See the documentation http://de3.php.net/explode (+3 score, accepted)
- 2013: explode function should help you. (0 score, not accepted)
- 2014: See explode function, it will do the job (0 score, not accepted)
- 2014: you can use exploade function http://in2.php.net/explode (0 score, not accepted)
- 2017: Use mb_split instead of explode (0 score, not accepted)
Granted the few answer that mention a specific parameter, may just stick their head above the line that I think should be drawn between tolerable and delible content. ...for now.
Should we:
- Downvote and delete them?
- Flag them as NAA as a pathway to deletion? (I know the famous Shog says they are partial apples, but aren't they just sending viewers to the manual?)
- Get moderators to convert them to comments? (but other answers often also have the link to the manual in their fuller answer -- this would just be moving the page bloat elsewhere)
- Keep them because they are SUUUUUUPER important to the researcher experience. <-- (yes, that's sarcasm.)
- Nuke the whole lot of duplicate pages!
The SEDE:
SELECT a.Id as [Post Link], a.CreationDate
FROM Posts a
INNER JOIN posts q ON q.id = a.parentid
WHERE q.tags LIKE '%<##tag?php##>%'
AND a.PostTypeId = 2
AND LEN(a.Body) < 150
AND a.Body LIKE '%php.net%explode%'
ORDER BY a.CreationDate ASC
You can very easily find more of the same manual-link-only answers by swapping out explode
for trim
or substr
or isset
or implode
or strstr
or any native function name. Even ucfirst
and array_map
had a manual-link-only answer or two found by my query.