php examples for  artificial intelligence