This question already has an answer here:
I have searched online for hours and haven't found anything that fixes my error. I have a file with this code,
<?php
class Conn {
public static $dbhost = “localhost”;
public static $dbuser = " < provide here user name to your database> ";
public static $dbpass = "< password you use to access database >";
public static $dbname = " <database name> ";
}
?>
and here's my error,
Parse error: syntax error, unexpected 'here' (T_STRING), expecting ',' or ';' in /Applications/XAMPP/xamppfiles/htdocs/Registration/Conn.php on line 4
I've tried changing " to ' yet it doesn't help!
I don't have any open strings, so what's the problem???
"localhost";
these types of questions are off-topic btw – Fred -ii- Jun 30 '15 at 23:09