4
I want to print the value on the screen after the PHP result.
public function iniciar()
{
$msg = '';
$oneclick = null;
# login...
$this->login();
if ($this->logado()) {
$oneclick = $this->pegar_oneclick();
$msg ="$this->usuario $this->senha $oneclick['card']['cardNumber'] $oneclick['card']['holderName'] $oneclick['card']['expirationDate'] ");
echo ('Logado - '.$msg);
} else {
$msg = "$this->usuario:$this->senha";
echo ('Não logado - '.$msg);
}
}
}
But you’re making me wrong again:
Parse error: syntax error, Unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting Identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in
On which line is this error? (nothing appears after the
in
?)– mgibsonbr
$msg = ("$this->user $this->password $oneclick['card']['cardNumber'] $oneclick['card']['holderName'] $oneclick['card']['expirationDate']"); echo ('Logged in - '.$msg);
– user21775
Take a look at [tour]. You can accept an answer if it solved your problem. You can vote on every post on the site as well. Did any help you more? You need something to be improved?
– Maniero