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 Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
mare70 Posted July 21, 2008 Author Share Posted July 21, 2008 thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.