Jump to content

Parse error


The Little Guy

Recommended Posts

I have this:

 

<?php
class Main{
protected $socket;
public function __construct(){  // Line 4

}

 

And I am getting this error:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/ryannaddyps/processes/Classes/Main.php on line 4

 

I have never seen this before, and I can not find the problem...

Link to comment
https://forums.phpfreaks.com/topic/193587-parse-error/
Share on other sites

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.