Linked list implemented in php.
How to use it
Just include this index.php file. You can create any new object for class LinkedList, by default $obj is object for this class. You can delete operations like $obj->insertAtBeginning() etc. Create your own.
Functions
insertAtBeginning() - It will insert new node at the beginning of the lsit.
insertAtLast() - It will insert new node at the end of the lsit.
deleteFirstNode() - It will delete first node.
deleteLastNode() - It will delete last node.
delete(data) - It will require one parameter, the value of any node in the list. It will delete the first occurence of data.
printList() - It will print your entire list.