I am getting the following error while running the following PHP code
class tableData
{
private $row1 = array("Kalle1", "address1", "postal code1", "[email protected]", "070111001", "08111001");
private $row2 = array("kalle2", "address2", "postcode2", "[email protected]", "070111002", "08111002");
private $row3 = array("kalle3", "address3", "postcode3", "[email protected]", "070111003", "08111003");
private $row4 = array("kalle4", "address4", "postcode4", "[email protected]", "070111004", "08111004");
private $rader = array(array($row1),array($row2),array($row3),array($row4));
}
The error is corresponding to the variable $rader:
Parse error: syntax error, unexpected '$row1' (T_VARIABLE), expecting ')' in C:\xampp\htdocs\test_k.php on line 15
Can anyone help me correct this error?