Jump to content

[SOLVED] some basic php question


mare70

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.