(PECL fann >= 1.0.0)
Creates the training data struct from a user supplied function
resource fann_create_train_from_callback ( int $num_data, int $num_input, int $num_output, callable $user_function )
Creates the training data struct from a user supplied function. As the training data are numerable (data 1, data 2...), the user must write a function that receives the number of the training data set (input, output) and ret