I don't know what I'm doing wrong here, but I'm getting parse error: "Parse error: syntax error, unexpected ',' in..."
$msg= 'This is ', htmlentities($from, ENT_QUOTES, 'UTF-8'),' and ', htmlentities($to, ENT_QUOTES, 'UTF-8'),' dates statistic ';
echo $msg;
Can you help me? I don't want to use concatenation, because of slower speed.
Basicaly commas seperated values are arguments. You are trying to pass arguments to the variable but not echo!
echo 'This is ',
htmlentities($from, ENT_QUOTES, 'UTF-8'),
' and ',
htmlentities($to, ENT_QUOTES, 'UTF-8'),
' dates statistic ';
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With