How to Scrape Meta Tags From Any Web Page With PHP

A couple of weeks ago I was going to work on a new project, it was a directory-like kind of app. One the things this application had to do was let users add their websites to their profiles, and so the first question came up, “how am going to get their website’s title and meta …

Translate characters or replace substrings

Is there any function which replaces params in a string? Something like this:? Code: $format_str = "My name is %name."; /* this was set in a                                       configuration file – config.php */$str = xprintf($format_str, array(\’name\’ => \’Joe\’, \’age\’ => 150));               /* above is somewhere in main code */ The expected value of $str after …