Which functions and techniques should a good programmer not use?
Probably ereg
is one of them.
Is it a good practice to use the global
keyword, or should I avoid it as much as possible?
Which functions and techniques should a good programmer not use?
Probably ereg
is one of them.
Is it a good practice to use the global
keyword, or should I avoid it as much as possible?
I agree with @Alin But theres also a few others you should look at. Most of these are basic knowledge as you progress in your programming and it is your responsibility to keep up with the latest language evolution and best practices.
Of the top of my head I can give you a few though :
eval()
goto()
Suppressing errors with @ for example @copy() or @mkdir
Just to name a few. The internet is full of good articles on this topic.
http://www.kavoir.com/2008/12/bad-practices-in-php-coding.html
Theres a whole lot of good reads so happy googling.