<?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>The Troll&#039;s factory &#187; perl</title>
	<atom:link href="http://trollfactory.fr/tag/perl/feed" rel="self" type="application/rss+xml" />
	<link>http://trollfactory.fr</link>
	<description>Geekeries &#38; pensées</description>
	<lastBuildDate>Mon, 09 Jun 2014 19:43:25 +0000</lastBuildDate>
	<language>fr-FR</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.41</generator>
	<item>
		<title>OH MY GOD On pouvait faire comme ça !?</title>
		<link>http://trollfactory.fr/oh-my-god-on-pouvait-faire-comme-ca-515</link>
		<comments>http://trollfactory.fr/oh-my-god-on-pouvait-faire-comme-ca-515#comments</comments>
		<pubDate>Wed, 06 Jul 2011 18:06:35 +0000</pubDate>
		<dc:creator><![CDATA[Troll]]></dc:creator>
				<category><![CDATA[astuces]]></category>
		<category><![CDATA[Geekeries]]></category>
		<category><![CDATA[astuce]]></category>
		<category><![CDATA[caractère]]></category>
		<category><![CDATA[char]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[string]]></category>

		<guid isPermaLink="false">http://trollfactory.fr/?p=515</guid>
		<description><![CDATA[(pour Google quand même : Récupérer le Xème caractère d&#8217;une string / chaîne de caractère en PHP ) Putain de programmeurs Perl, pourquoi ils savent faire des trucs en PHP que les programmeurs PHP savent pas faire ? Depuis le temps que je grognais contre le fait qu&#8217;en C ou même en Pascal on peut [...]]]></description>
				<content:encoded><![CDATA[<p>(pour Google quand même : <strong>Récupérer le Xème caractère d&rsquo;une string / chaîne de caractère en PHP</strong> )<br />
Putain de programmeurs Perl, pourquoi ils savent faire des trucs <strong>en PHP </strong>que les programmeurs PHP savent pas faire ?</p>
<p>Depuis le temps que je grognais contre le fait qu&rsquo;en C ou même en Pascal on peut accéder au caractère X d&rsquo;une chaine de caractère en faisant machaine[X] et qu&rsquo;en PHP on peut pas&#8230; Et depuis le temps que j&rsquo;utilisais à la place <strong>substr($str, X-1, X)</strong> !!!!</p>
<p>Eh ben en fait, suffit de faire ça :</p>
<p><code>$mastring{X}</code></p>
<p>Fuck, j&rsquo;m&rsquo;en veux là.</p>
<p>Bon ben du coup c&rsquo;est la révolution : je sais faire ça et en plus c&rsquo;est le deuxième billet super court que je fais en 2 jours.</p>
<p>Désolé pour les non-geeks qui auront rien compris à ce post, il faut bien des fois aussi hein, regardez, moi je comprends rien aux posts <a href="http://chroniquesdefemmes.com/">qui sont postés là-bas</a> eh ben tant pis, je me dis que c&rsquo;est normal ! <img src="//trollfactory.fr/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /></p>
Share and Enjoy:<a rel="nofollow" target="_blank"  href="http://www.printfriendly.com/print/new?url=http%3A%2F%2Ftrollfactory.fr%2Foh-my-god-on-pouvait-faire-comme-ca-515" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/printfriendly.png" class="sociable-img sociable-hovers" title="Print" alt="Print" /></a><a rel="nofollow" target="_blank"  href="http://www.printfriendly.com/print/new?url=http%3A%2F%2Ftrollfactory.fr%2Foh-my-god-on-pouvait-faire-comme-ca-515" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/pdf.png" class="sociable-img sociable-hovers" title="PDF" alt="PDF" /></a><a rel="nofollow" target="_blank"  href="http://twitter.com/home?status=OH%20MY%20GOD%20On%20pouvait%20faire%20comme%20%C3%A7a%20%21%3F%20-%20http%3A%2F%2Ftrollfactory.fr%2Foh-my-god-on-pouvait-faire-comme-ca-515" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/twitter.png" class="sociable-img sociable-hovers" title="Twitter" alt="Twitter" /></a><a rel="nofollow" target="_blank"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Ftrollfactory.fr%2Foh-my-god-on-pouvait-faire-comme-ca-515&amp;t=OH%20MY%20GOD%20On%20pouvait%20faire%20comme%20%C3%A7a%20%21%3F" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/facebook.png" class="sociable-img sociable-hovers" title="Facebook" alt="Facebook" /></a><a rel="nofollow" target="_blank"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Ftrollfactory.fr%2Foh-my-god-on-pouvait-faire-comme-ca-515&amp;title=OH%20MY%20GOD%20On%20pouvait%20faire%20comme%20%C3%A7a%20%21%3F&amp;source=The+Troll%26%23039%3Bs+factory+Geekeries+%26amp%3B+pens%C3%A9es&amp;summary=%28pour%20Google%20quand%20m%C3%AAme%20%3A%20R%C3%A9cup%C3%A9rer%20le%20X%C3%A8me%20caract%C3%A8re%20d%27une%20string%20%2F%20cha%C3%AEne%20de%20caract%C3%A8re%20en%20PHP%20%29%0D%0APutain%20de%20programmeurs%20Perl%2C%20pourquoi%20ils%20savent%20faire%20des%20trucs%20en%20PHP%20que%20les%20programmeurs%20PHP%20savent%20pas%20faire%20%3F%0D%0A%0D%0ADepuis%20le%20temps%20que%20je%20gr" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/linkedin.png" class="sociable-img sociable-hovers" title="LinkedIn" alt="LinkedIn" /></a><a rel="nofollow" target="_blank"  href="http://trollfactory.fr/feed" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/rss.png" class="sociable-img sociable-hovers" title="RSS" alt="RSS" /></a><a rel="nofollow" target="_blank"  href="http://www.wikio.fr/vote?url=http%3A%2F%2Ftrollfactory.fr%2Foh-my-god-on-pouvait-faire-comme-ca-515" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/wikio.png" class="sociable-img sociable-hovers" title="Wikio FR" alt="Wikio FR" /></a><a rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ftrollfactory.fr%2Foh-my-god-on-pouvait-faire-comme-ca-515&amp;title=OH%20MY%20GOD%20On%20pouvait%20faire%20comme%20%C3%A7a%20%21%3F&amp;bodytext=%28pour%20Google%20quand%20m%C3%AAme%20%3A%20R%C3%A9cup%C3%A9rer%20le%20X%C3%A8me%20caract%C3%A8re%20d%27une%20string%20%2F%20cha%C3%AEne%20de%20caract%C3%A8re%20en%20PHP%20%29%0D%0APutain%20de%20programmeurs%20Perl%2C%20pourquoi%20ils%20savent%20faire%20des%20trucs%20en%20PHP%20que%20les%20programmeurs%20PHP%20savent%20pas%20faire%20%3F%0D%0A%0D%0ADepuis%20le%20temps%20que%20je%20gr" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/digg.png" class="sociable-img sociable-hovers" title="Digg" alt="Digg" /></a><a rel="nofollow" target="_blank"  href="http://delicious.com/post?url=http%3A%2F%2Ftrollfactory.fr%2Foh-my-god-on-pouvait-faire-comme-ca-515&amp;title=OH%20MY%20GOD%20On%20pouvait%20faire%20comme%20%C3%A7a%20%21%3F&amp;notes=%28pour%20Google%20quand%20m%C3%AAme%20%3A%20R%C3%A9cup%C3%A9rer%20le%20X%C3%A8me%20caract%C3%A8re%20d%27une%20string%20%2F%20cha%C3%AEne%20de%20caract%C3%A8re%20en%20PHP%20%29%0D%0APutain%20de%20programmeurs%20Perl%2C%20pourquoi%20ils%20savent%20faire%20des%20trucs%20en%20PHP%20que%20les%20programmeurs%20PHP%20savent%20pas%20faire%20%3F%0D%0A%0D%0ADepuis%20le%20temps%20que%20je%20gr" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/delicious.png" class="sociable-img sociable-hovers" title="del.icio.us" alt="del.icio.us" /></a><a rel="nofollow" target="_blank"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ftrollfactory.fr%2Foh-my-god-on-pouvait-faire-comme-ca-515&amp;title=OH%20MY%20GOD%20On%20pouvait%20faire%20comme%20%C3%A7a%20%21%3F&amp;annotation=%28pour%20Google%20quand%20m%C3%AAme%20%3A%20R%C3%A9cup%C3%A9rer%20le%20X%C3%A8me%20caract%C3%A8re%20d%27une%20string%20%2F%20cha%C3%AEne%20de%20caract%C3%A8re%20en%20PHP%20%29%0D%0APutain%20de%20programmeurs%20Perl%2C%20pourquoi%20ils%20savent%20faire%20des%20trucs%20en%20PHP%20que%20les%20programmeurs%20PHP%20savent%20pas%20faire%20%3F%0D%0A%0D%0ADepuis%20le%20temps%20que%20je%20gr" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/googlebookmark.png" class="sociable-img sociable-hovers" title="Google Bookmarks" alt="Google Bookmarks" /></a><a rel="nofollow" target="_blank"  href="http://technorati.com/faves?add=http%3A%2F%2Ftrollfactory.fr%2Foh-my-god-on-pouvait-faire-comme-ca-515" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/technorati.png" class="sociable-img sociable-hovers" title="Technorati" alt="Technorati" /></a><a rel="nofollow" target="_blank"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Ftrollfactory.fr%2Foh-my-god-on-pouvait-faire-comme-ca-515" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/sphinn.png" class="sociable-img sociable-hovers" title="Sphinn" alt="Sphinn" /></a><a rel="nofollow" target="_blank"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Ftrollfactory.fr%2Foh-my-god-on-pouvait-faire-comme-ca-515&amp;title=OH%20MY%20GOD%20On%20pouvait%20faire%20comme%20%C3%A7a%20%21%3F" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/mixx.png" class="sociable-img sociable-hovers" title="Mixx" alt="Mixx" /></a><a rel="nofollow" target="_blank" title="Add to favorites" href="#" onclick="AddToFavorites(); return false;"><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/addtofavorites.png" class="sociable-img sociable-hovers" title="Add to favorites" alt="Add to favorites" /></a><a rel="nofollow" target="_blank"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Ftrollfactory.fr%2Foh-my-god-on-pouvait-faire-comme-ca-515&amp;title=OH%20MY%20GOD%20On%20pouvait%20faire%20comme%20%C3%A7a%20%21%3F" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/live.png" class="sociable-img sociable-hovers" title="Live" alt="Live" /></a><a rel="nofollow" target="_blank"  href="http://www.netvibes.com/share?title=OH%20MY%20GOD%20On%20pouvait%20faire%20comme%20%C3%A7a%20%21%3F&amp;url=http%3A%2F%2Ftrollfactory.fr%2Foh-my-god-on-pouvait-faire-comme-ca-515" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/netvibes.png" class="sociable-img sociable-hovers" title="Netvibes" alt="Netvibes" /></a><a rel="nofollow" target="_blank"  href="http://www.scoopeo.com/scoop/new?newurl=http%3A%2F%2Ftrollfactory.fr%2Foh-my-god-on-pouvait-faire-comme-ca-515&amp;title=OH%20MY%20GOD%20On%20pouvait%20faire%20comme%20%C3%A7a%20%21%3F" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/scoopeo.png" class="sociable-img sociable-hovers" title="Scoopeo" alt="Scoopeo" /></a><a rel="nofollow" target="_blank"  href="http://www.viadeo.com/shareit/share/?url=http%3A%2F%2Ftrollfactory.fr%2Foh-my-god-on-pouvait-faire-comme-ca-515&title=OH%20MY%20GOD%20On%20pouvait%20faire%20comme%20%C3%A7a%20%21%3F&urllanguage=fr" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/viadeo.png" class="sociable-img sociable-hovers" title="viadeo FR" alt="viadeo FR" /></a><a rel="nofollow" target="_blank"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Ftrollfactory.fr%2Foh-my-god-on-pouvait-faire-comme-ca-515" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/identica.png" class="sociable-img sociable-hovers" title="Identi.ca" alt="Identi.ca" /></a><a rel="nofollow" target="_blank"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Ftrollfactory.fr%2Foh-my-god-on-pouvait-faire-comme-ca-515&amp;t=OH%20MY%20GOD%20On%20pouvait%20faire%20comme%20%C3%A7a%20%21%3F" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/myspace.png" class="sociable-img sociable-hovers" title="MySpace" alt="MySpace" /></a><a rel="nofollow" target="_blank"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ftrollfactory.fr%2Foh-my-god-on-pouvait-faire-comme-ca-515&amp;title=OH%20MY%20GOD%20On%20pouvait%20faire%20comme%20%C3%A7a%20%21%3F" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png" class="sociable-img sociable-hovers" title="StumbleUpon" alt="StumbleUpon" /></a><a rel="nofollow" target="_blank"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Ftrollfactory.fr%2Foh-my-god-on-pouvait-faire-comme-ca-515&amp;submitHeadline=OH%20MY%20GOD%20On%20pouvait%20faire%20comme%20%C3%A7a%20%21%3F&amp;submitSummary=%28pour%20Google%20quand%20m%C3%AAme%20%3A%20R%C3%A9cup%C3%A9rer%20le%20X%C3%A8me%20caract%C3%A8re%20d%27une%20string%20%2F%20cha%C3%AEne%20de%20caract%C3%A8re%20en%20PHP%20%29%0D%0APutain%20de%20programmeurs%20Perl%2C%20pourquoi%20ils%20savent%20faire%20des%20trucs%20en%20PHP%20que%20les%20programmeurs%20PHP%20savent%20pas%20faire%20%3F%0D%0A%0D%0ADepuis%20le%20temps%20que%20je%20gr&amp;submitCategory=science&amp;submitAssetType=text" ><img src="//trollfactory.fr/wp-content/plugins/sociable-30/images/default/16/yahoobuzz.png" class="sociable-img sociable-hovers" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a><br/><br/>]]></content:encoded>
			<wfw:commentRss>http://trollfactory.fr/oh-my-god-on-pouvait-faire-comme-ca-515/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
