ProAnswers.org

is it possible to code websites (such as YouTube and MySpace) using PHP?

Yes definitely possible !

so Many major web sites like Digg and Facebook are written in PHP.

YouTube is actually majorly written in Python.