define() gives you a literal copy of the value of the second parameter. In
this case your second parameter is __LINE__. The value of __LINE__
represents the current line number of the define statement. Once defined the
value assigned remains constant, irrespective of whether or not __LINE__
consants must be scalar, they can not be references.
http://php.net/manual/en/function.define.php
what your looking for is this.
?php
define(LN, __LINE__);
?
this is invalid syntax though, I dont know how to answer your question though, sorry
:(
--
Chris Lee
2 matches
Mail list logo