NYCPHP Meetup

NYPHP.org

[nycphp-talk] Object Methods and Properties

Sol sol2ray at yahoo.fr
Tue Jul 27 16:11:44 EDT 2004


 
> can anyone tell me why this code will not work>
> 
> 
> function setPart($part, $val, $append) {
> 	if(($part) && ($val)) {
> 		if($append) $this->_$part .= $val;
> 		else $this->_$part = $val;
> 	}
> }

if($this->_$part is declared as var $_part){
   
   $this->_$part should be $this->_part;
}

=====
Sol Touré
PHPBTREE
http://phpbtree.com


		
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail 



More information about the talk mailing list