Jump to content

PHP Linked List


santiago.basulto

Recommended Posts

Hey everyone!

 

I've wrote a LinkedList with the same interface to the Java one. Take a look and tell me what you think about it.

 

I'm just coding for personal use, so any comment or recomendation will be well received.

 

You can find it at: http://blogs.xingular.net/santiago/php/linkedlist-en-php/

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/179415-php-linked-list/
Share on other sites

I didn't look at the code very closely (tired, having trouble seeing straight!) but it looks like the SplDoublyLinkedList (part of the SPL) but with, as you say, a Java-inspired interface.

 

P.S. Mark said the same thing; that'll teach me to open threads in tabs and take a while to get around to answering them!

Link to comment
https://forums.phpfreaks.com/topic/179415-php-linked-list/#findComment-946683
Share on other sites

Hey everyone!

 

I've wrote a LinkedList with the same interface to the Java one. Take a look and tell me what you think about it.

 

I'm just coding for personal use, so any comment or recomendation will be well received.

 

You can find it at: http://blogs.xingular.net/santiago/php/linkedlist-en-php/

Thanks!

 

 

Nice

work i saw code this is very good. you used oops concept in php.

 

i like this code....

Link to comment
https://forums.phpfreaks.com/topic/179415-php-linked-list/#findComment-947768
Share on other sites

Formatting of the code on your page doesn't look good.

 

You're aware that linked lists are a part of SPL, which has been available as part of PHP from 5.0.0

 

Yes Mark, i'm aware. The mean of this implemenation is just practice. I'd not use it in a professional app, or production eviroment. The main idea was to coding something and ask you guys (who are real pros) what do you think about it.

 

Thanks for your help everybody!

 

PD: I'm coding a tree right now. And i hope get a B-Tree beta implementation for december. That's something more interesting.

Link to comment
https://forums.phpfreaks.com/topic/179415-php-linked-list/#findComment-951024
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.