You are here: php extract variable from a string using regexp « PHP Programming Language « IT news, forums, messages
php extract variable from a string using regexp

Posted by Ciaran on 07/17/07 19:28

Hi can someone give me hand with this please?


What's the best way to extract the extension from the url?

example:
$string="http://www.domain.co.uk/anypage.html"
In this example, I'd be looking for: "co.uk" but it could be "com",
"net" , or any other extension

Thanks
Ciarán

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация