Legal obligations for payment of a fence are often set by local councils and can "vary widely" - see when your neighbour has to pay half.
If you want a fence around your yard but don't want to spend thousands of dollars, learn about this eco-friendly option. The best part is that it's free!