mare70 Posted July 21, 2008 Share Posted July 21, 2008 I Know What this code doing but i dont know way used expression "->" and variable "this" code: $this->host = $settings['dbhost']; $this->dbname = $settings['dbname']; $this->user = $settings['dbusername']; $this->pass = $settings['dbpassword']; way this code dont look like this: dbname = $settings['dbname']; ps. I am new in php and i have experience in vb.net ,so plase understand me and help mi migrate.Thanks Link to comment https://forums.phpfreaks.com/topic/115836-solved-some-basic-php-question/ Share on other sites More sharing options...
revraz Posted July 21, 2008 Share Posted July 21, 2008 http://www.phpfreaks.com/forums/index.php/topic,95867.0.html Link to comment https://forums.phpfreaks.com/topic/115836-solved-some-basic-php-question/#findComment-595476 Share on other sites More sharing options...
samshel Posted July 21, 2008 Share Posted July 21, 2008 "->" is used with an object in PHP to refer to member property/variable or a member method. $this will represent the current object of the current class. Link to comment https://forums.phpfreaks.com/topic/115836-solved-some-basic-php-question/#findComment-595477 Share on other sites More sharing options...
mare70 Posted July 21, 2008 Author Share Posted July 21, 2008 thanks Link to comment https://forums.phpfreaks.com/topic/115836-solved-some-basic-php-question/#findComment-595483 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.