Is there something in PHP similar to Collections.unmodifiableMap in Java?
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Collections.html#unmodifiableMap(java.util.Map)
This function allows you to "lock" a Map (similar to PHP array) so that no other code can modify it. It is useful if you write code which is used by others and you don't want them to inadvertently modify some complex data.
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Collections.html#unmodifiableMap(java.util.Map)
This function allows you to "lock" a Map (similar to PHP array) so that no other code can modify it. It is useful if you write code which is used by others and you don't want them to inadvertently modify some complex data.