hey all,
Was just wondering how to do the following:
<?php
class Foo {
var $bar = $foo; // causes parse error
var $bar = "$foo"; // causes parse error
var $bar = '$foo'; // works but $foo is not evaluated
}
?>
So how does one correctly assign a variable to a variable inside a class withot doing
something like:
var $bar = '';
$this->bar = $foo;
Any insight would be much appreciated.
Regards
Joseph
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]