Jump to content

Parse error: syntax error, unexpected '@' in /var/www/mysql_up.php on line 7


abhishekphp6

Recommended Posts

Hello,

 

I declared  a variable like

 

$password=”Pass@wordX”;

 

I get an error on this line Parse error: syntax error, unexpected '@' in /var/www/mysql_up.php on line 7

 

I tried using escape sequence by

$password=”Pass\@wordX”;

 

but then I get the error

 

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /var/www/mysql_up.php on line 7

Parse error: syntax error, unexpected '@' in /var/www/mysql_up.php

 

Can you please help. I am not able to assign a string which contains the character @ in it.

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.