PHP code example of rockschtar / typed-arrays
1. Go to this page and download the library: Download rockschtar/typed-arrays library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rockschtar / typed-arrays example snippets
class DummyTypedArray extends TypedArray {
/**
* Overrides parent method for type hints
* @return DummyClass
*/
public function current() : DummyClass {
return parent::current();
}
/**
* Returns the type of the typed array
* @return string
*/
protected function getType(): string {
return DummyClass::class;
}
}