PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Anyone know a way I could extract information from YouTube. If I have the URL for the video, how could I get the title, runtime, tags and so on into different strings?
the big difference is that the get_meta_tags will only get you what is in the head section. The Dom will get you anything in the document. If all you need is whatever they put in the head section I will use the get_meta_tags. Much simpler.