<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>运达&#039;s  blog &#187; URL</title>
	<atom:link href="https://www.yunda51.com/?feed=rss2&#038;tag=url" rel="self" type="application/rss+xml" />
	<link>https://www.yunda51.com</link>
	<description>运达的博客</description>
	<lastBuildDate>Wed, 12 Nov 2025 07:58:26 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.0.19</generator>
	<item>
		<title>PHP如何快速提取URL中的域名?</title>
		<link>https://www.yunda51.com/?p=1519</link>
		<comments>https://www.yunda51.com/?p=1519#comments</comments>
		<pubDate>Mon, 09 Mar 2015 07:50:39 +0000</pubDate>
		<dc:creator><![CDATA[运达]]></dc:creator>
				<category><![CDATA[php技术]]></category>
		<category><![CDATA[URL]]></category>
		<category><![CDATA[提取，域名]]></category>

		<guid isPermaLink="false">http://www.yunda51.com/?p=1519</guid>
		<description><![CDATA[代码如下： 第一种方法： $Url=&#039;http://www.yunda51.com/1475.htm<a href="https://www.yunda51.com/?p=1519" class="read-more">Continue Reading</a>]]></description>
				<content:encoded><![CDATA[<p>代码如下：<br />
第一种方法：</p>
<pre class="wp-code-highlight prettyprint">
$Url=&#039;http://www.yunda51.com/1475.html&#039;;  
$tempu=parse_url($Url);  
$message=$tempu[&#039;host&#039;];  
echo $message;  
</pre>
<p>第二种方法：</p>
<pre class="wp-code-highlight prettyprint">
$url=&quot;http://www.yz0310.com/forum.php?mod=viewthread&amp;tid=335#lastpost&quot;
$arr = explode(&quot;/&quot;, $Url);
echo $arr [2] ;
</pre>
]]></content:encoded>
			<wfw:commentRss>https://www.yunda51.com/?feed=rss2&#038;p=1519</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
