Hi, I just now seen the SPl section in PHP and tried a example in my localhost. I return an error as class not found. // Initialize the array with a fixed length $array = new SplFixedArray(5); $array[1] = 2; $array[4] = "foo"; var_dump($array[0]); // NULL var_dump($array[1]); // int(2) var_dump($array["4"]); // string(3) "foo" PHP: So I hope i need to enable some setting or else i need 2 include the class file . But how to do that? Any idea?
What version of php are you using? It has been complied in php source since 5.0. CHeck your php.ini and make sure that spl is not disabled also.
Hi, My PHP version is 5.2.5 WAMP And i enabled the extension - php_spl_types. What else i need to do?