PHP Magic Features

Έχω πολύ καιρό να κάτσω στον υπολογιστή και να κάνω hard-core προγραμματισμό σε PHP. Προσπαθώ όμως να είμαι ενήμερος σε ότι αλλαγές γίνονται. Και από ότι βλέπω γύρω μου, όλοι περιμένουν την καινούργια version της, με έμφαση στην Ελλάδα μιας και λύνει πολλά προβλήματα με τους ελληνικούς χαρακτήρες. Σήμερα διάβασα αυτό το πολύ καλό και λιτό άρθρο που περιγράφει τις “μαγικές” μεθόδους, όπως τις αναφέρει:

Magic methods, which are class methods with specific names, are used to perform various specialized tasks. They are grouped into two: overloading methods and non-overloading methods. Overloading magic methods are used when your code attempts to access a method or a property which does not exist. Non-overloading methods perform other tasks.
Magic functions, which are similar to magic methods, but are just plain functions outside any class. Currently there is only one magic function in PHP.
Magic constants, which are similar to constants in notation, but act more like “dynamic” constants – their value depends on where you use them.

Θα το πρότεινα σε όποιον έχει την διάθεση να “χαλάσει” 10 λεπτά από τον χρόνο του ώστε να δει τις μεθόδους

Σχολίασε το άρθρο