I would like to use a loop to create properties inside a class.
class Example
{
for( $i=0; $i<5; $i++ )
{
public $num . $i;
}
}
When I do this I get the error
FATAL ERROR syntax error, unexpected 'for' (T_FOR), expecting function (T_FUNCTION)
Am I understanding this completely wrong or is it a syntax error? Thanks