Ive seen some php examples of how you can ping an inbox(without sending any mail to it) to check whether it exists. I was wondering if anyone knows if this is possible with
No, it is impossible in principle to check if an email exists - independent of language. There is simply no protocol to do it.
There are some partial solutions, but none of them are reliable.
See How to check if an email address exists without sending an email? for details.