<?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>Zihni &#187; ereg</title>
	<atom:link href="http://www.zihni.net/tag/ereg/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zihni.net</link>
	<description>Zihinsel şeyler, web programlama falan filan</description>
	<lastBuildDate>Wed, 28 Jul 2010 09:36:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ereg() Fonksiyonu</title>
		<link>http://www.zihni.net/php/ereg-fonksiyonu/</link>
		<comments>http://www.zihni.net/php/ereg-fonksiyonu/#comments</comments>
		<pubDate>Mon, 12 Feb 2007 20:50:41 +0000</pubDate>
		<dc:creator>Zihni</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[ereg]]></category>

		<guid isPermaLink="false">http://www.zihni.net/?p=40</guid>
		<description><![CDATA[


Sözdizimi:
int ereg ( string kalip, string aranacak_string,  array [eslesmeler] )
kalip parametresi ile verilen kurallı ifadeyi aranacak_string stringinde arar.
Bulunan eşleşmeleri eslesmeler dizisine doldurur.
Örnek:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
&#60;?php
$aranacak_string = &#34;Gelmiş geçmiş en büyük lider Atatürk'tür. &#34;;
$kalip = &#34;Atatürk&#34;;
if&#40;ereg&#40;$kalip,$aranacak_string,$eslesmeler&#41;&#41;
&#123;
print &#34;Eşleşme bulundu:&#34;;
print $eslesmeler&#91;0&#93;;
&#125;
else
&#123;
print &#34;Eşleşme bulunamadı.&#34;;
&#125;
?&#62;
&#160;
Çıktı:
Eşleşme bulundu:Atatürk

]]></description>
			<content:encoded><![CDATA[<p><strong>Sözdizimi:</strong></p>
<p>int ereg ( string kalip, string aranacak_string,  array [eslesmeler] )</p>
<p><strong>kalip</strong> parametresi ile verilen kurallı ifadeyi <strong>aranacak_string</strong> stringinde arar.<br />
Bulunan eşleşmeleri <strong>eslesmeler</strong> dizisine doldurur.</p>
<p><strong>Örnek:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$aranacak_string</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Gelmiş geçmiş en büyük lider Atatürk'tür. &quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$kalip</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Atatürk&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">ereg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$kalip</span><span style="color: #339933;">,</span><span style="color: #000088;">$aranacak_string</span><span style="color: #339933;">,</span><span style="color: #000088;">$eslesmeler</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #990000;">print</span> <span style="color: #0000ff;">&quot;Eşleşme bulundu:&quot;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">print</span> <span style="color: #000088;">$eslesmeler</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">else</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #990000;">print</span> <span style="color: #0000ff;">&quot;Eşleşme bulunamadı.&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
Çıktı:
Eşleşme bulundu:Atatürk</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.zihni.net/php/ereg-fonksiyonu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
