php單鏈表實現
= __construct(='',=''->no=->name= addHero(,== (->!=(->->no>->=->->=->==; (->->no==->no){ "該位置已有人,不允許占位";=;{ =->(){->= showHero(=(->!= ->->no.":".->->name."<br/>"=-> delHero(,=(->!=(->->no==(->->)->=->-> ->==-> findHero(,=(->!=(->->no==){=->->-> updateHero(,,=(->!=(->->no==){=->->->name=== Hero(1,"宋江",= Hero(6,"林沖",= Hero(2,"吳用",= Hero(4,"李逵", delHero(,4 findHero(,6 updateHero(,6,"林哥哥"?>