well ive been doing some work with object oriented php and came across a question i couldnt answer. can you create a list i.e. similiar to a linkedlist in java or the like in php ?
Fungus1487
55
Posting Pro in Training
Recommended Answers
Jump to PostYes not a problem, this the code for a list node. Writting the rest of the operation functions are quite easy once you have a node.
<?php class ListNode{ var $previousNode; var $nextNode; //a reference to the next node var $element; //the object || value for this …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.