Here is some data mining in PHP:
Nearest Neighbour Algorithm
K Nearest Neighbour Algorithm
Links:
Nearest Neighbour
A lecture from the course
learning from data
at
University of Edinburgh
The course I am taking