Jump to content

Expecting Scope Resolution Operator..


BK201

Recommended Posts

Maybe I'm just missing something but I'm completely dumbfounded atm..

 

 

Parse error: syntax error, unexpected T_CLASS, expecting T_PAAMAYIM_NEKUDOTAYIM

 

<?php

static class Items {

	private $_weapons = array(
	["Wood Axe"] => 10
	);
	private $_armor = array();
	private $_shields = array();
	private $_helmets = array();
	private $_boots = array();


}
?>

Link to comment
https://forums.phpfreaks.com/topic/263486-expecting-scope-resolution-operator/
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.