Hi team,
I have created a debug class and am wanting to get the LINE output put into a string, it turns out it passes a array as the object type with a element count of 1, this makes sense as it just holds the current line number but how do I transform/change the output so I can pass a sting to my debug class to write it to another file?
I have tried the following
//we assume the class is included...
function newbie() {
global $d;
$d->s("function newbie");
settype(__LINE__, "string");
//this below I belive just re-assigns
$line = __LINE__;
$d->s($line);
}
//the $d->s(...whatever..)
//just writes to the output file
//this is the error message I get
Fatal error: Only variables can be passed by reference
can anyone help with this problem? and what do you call LINE type php variables?
BBK
😃