While not directly connected to web development Neural Networks and Machine Learning in general are exciting subjects that can often come useful, especially for tasks like spam detection and image recognition. Thanks to the excellent FANN extension that abstracts out all the math behind the scenes we can easily use them with PHP. This is a small intro into the training algorithm and a walkthrough though training a simple network to do the XOR operation.