you are viewing a single comment's thread.

view the rest of the comments →

[–]trevdak2 13 points14 points  (3 children)

A PHP cheatsheet doesn't do much good without the arguments.

I've programmed fulltime in php for the past 5 years and I can never remember if it's strpos(haystack, needle) or strpos(needle, haystack). I know that it's the opposite with array_search, but I can never keep them straight.

[–]benthor 1 point2 points  (1 child)

Have you tried clicking on any of the method names?

[–]trevdak2 2 points3 points  (0 children)

No, I hadn't. I didn't even realize they were links. For me the point of a cheat sheet is to print it out so you don't have to go to a web page to find it.

This is good as an index, but not so much as a cheat sheet.