Usage
Syntax: var = new [int number]; or var = new ObjectClass(string param)
Explanation
new [int n] initializes a new array of size 'n'.
new ObjectClass(string param) creates a new ObjectClass instance.
Example
function onCreated()
{
this.array = new[10];
echo( this.array.size() );
echo( this.array ) ;
}...Echos "10" and "0,0,0,0,0,0,0,0,0,0" to RC
Categories
CategoryLanguageConstruct
There are no comments on this page. [Add comment]