Yes, it is possible to implement Artificial Intelligence and Games in PHP. Just because you can implement AI and games in PHP, doesn't mean you have to. It is not optimal to use PHP because it is designed for effective Server Side web programming. Hence, it is not a better and optimal platform to develop Artificial Intelligence and Games on.
If you want to learn Artificial Intelligence, then check out this Artificial Intelligence Course by Intellipaat.