Robot that can understand what user's say to it

I just used an mobile chat application ‘Nimbuzz’, where I see that their Chat Bot is very good. Whatever I say, it gives me relevant answer. How I can make such robot in PHP? What should be the correct approach?

People say that computer don’t understand english, but in this situation, they did.

It is not that computers don’t understand English it is that it requires a lot of processing and programming. Can this be done in PHP? Sure, but it would require a lot of work.

They don’t understand English, they are engineered by creative people to mimic the appearance of conversation but it’s really not. SIRI is a good example.