PHP code example of angle / linked
1. Go to this page and download the library: Download angle/linked 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/ */
angle / linked example snippets
$list = new Angle\Linked\Linked;
$list->append('PHP');
$list->append('Ruby');
$list->append('Javascript');
print $list->head->next->next->data; // Javascript
$list->prepend('Golang');
print $list->head->data; // Golang
print $list; // Golang, PHP, Ruby, Javascript