Getting domain from string |
[eluser]Jujubins[/eluser]
Theres some function in CI to do that? Example: http://images.google.com/search?tbm=isch...=&aql;=&oq;= Return: google.com
[eluser]Iván Argulo[/eluser]
This will return "images.google.com" Code: $url = 'http://images.google.com/q?all_params&and=so&on;'; Of course it could be improved, but it's a 1-minute solution. Hope it helps
|
Welcome Guest, Not a member yet? Register Sign In |