I don't think Codecademy even has a PHP course anymore, I'm pretty sure it's obsolete. You can probably still find it by direct linking to it though. Failing that, take a look at w3schools. As above, it's impossible to grab PHP code from a web source that isn't open sourced simply because it runs in the server so why not take a look at some git repositories or play around with PHP scripting in bash since you can run PHP scripts through that.