I still have no clue what the OP was asking, but I can't help being amazed at how many people try to compare PHP and Javascript. I'm not picking on anyone, but it's important to realise that they are completely different things. PHP is a server-side script - the client never sees any PHP code, only output (whether it's HTML or not). Javascript is a client-side script and is seen and executed by the client. They share practically no functionality - you cannot substitute PHP for Javascript or vice versa. For example, you cannot do database access with Javascript and you can't do AJAX with PHP. Perhaps the only useful thing that actually both of them can do is to show the current date. So it's not a matter of one language being easier for beginners or whatever - it's a matter of what you are trying to accomplish. You use PHP for some tasks and Javascript for others. As said before, in terms of SEO, the best thing to have is clean HTML. If you have a PHP script that outputs HTML, then that should be more or less SE friendly. If you have PHP that outputs Javascript, then that will not be SE friendly.