Organizational Research By

Surprising Reserch Topic

php readonly properties using -'php,programming-languages'

php readonly properties  using -'php,programming-languages'

In using PHP's DOM classes (DOMNode, DOMEElement, etc) I have noticed that they possess truly readonly properties. For example, I can read the $nodeName property of a DOMNode, but I cannot write to it (if I do PHP throws a fatal error).

How can I create readonly properties of my own in PHP?

asked Sep 8, 2015 by rajesh
0 votes
1 view

Related Hot Questions

Government Jobs Opening