andre.mdsou Posted August 12, 2016 at 01:52 PM Report #598117 Posted August 12, 2016 at 01:52 PM (edited) Para que serve e quando se usa os simbolos -> em PHP? $mail->Password = 'senha do email'; // PASSWORD DA CONTA DE E-MAIL ! $mail->Username = 'email'; //EMAIL Edited August 12, 2016 at 03:39 PM by pwseo tags code, syntax highlight.
tiago.f Posted August 12, 2016 at 01:56 PM Report #598118 Posted August 12, 2016 at 01:56 PM PHP has two Object Operator namely -> and :: -> is used when you are trying to call a method on an Instance and / or access an Instance property. :: is used when you want to call a static method or call a parent class's version of a method within a child class.
chbcl Posted August 14, 2016 at 04:09 PM Report #598134 Posted August 14, 2016 at 04:09 PM No teu caso esse sinal serve para alterares os atributos Password e Username, que nada mais são que variáveis da classe. Por exemplo: A classe: class Email { public $Username = 'anonymous'; public $Password = NULL; public function __construct(){ #faz qualquer coisa. } } Como chama-la e definir os atributos: $email = new Email(); $email->Username = 'guest'; $email->Password = '123asd123'; 1 Report developer @ filipealves.net filipealvesbcl [a] gmail.com github.com/filipealvesbcl
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now