How many of PHP functions & operators should one remember to code?
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
How many of PHP functions & operators should one remember to code?
Hello!
So if you are a PHP-programmer (average one) and code for money, how many of funtions and operators of PHP should you remember by heart (in real life)? I was looking through php.net and man there are millions of tonns of them!
I code PHP for money, but by heart and in real life? I hope none. Learn how to search. Make something with passion and you're good. People don't want to see your code.
I would simply expect you to be competent with the language, and able to deliver on your promises. However, I would also expect you to know how to properly avail yourself of reference materials and the possibly-greater expertise of your co-workers. No one knows it all. No one needs to.
So everytime you need to perform something particular in your PHP script you just search for a function in Google?
A better starting point for PHP would be it's own documentation rather than Google. You can download the whole documentation in either html or in help file format and do you searching from there. If you don't find the function that you are after then check out Pear. If you are still out of luck then google.
To that end, whenever I'm teaching at the community college, you can bring a one-page "cheat sheet" to every test including the final exam. As long as you prepared it, and staple it to the test when you turn it in, "everyone has reference materials available to them, and refers to those materials constantly on the job, and so any situation that demands rote memorization is both unfair and useless." (Preparing such a sheet is also the best study-method that I know.)
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 2,612
Rep:
yep, i myself usually have an idea of what php function is necessary for the task at hand but not always the exact syntax, so i'm always frequenting php.net
if you use firefox, there is a search addon for php.net documentation so you can search php.net from firefox's search bar, i would recommend you add that.
another useful tool for the HTML end of your php scripts would be firebug.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.