wait wait.... are the first two codes for PHP?

where does the first go?

I'm not some expert at PHP sorry