<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" 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/" > <channel><title>Comments on: Creating an Ellipsis in PHP</title> <atom:link href="http://brenelz.com/blog/creating-an-ellipsis-in-php/feed/" rel="self" type="application/rss+xml" /><link>http://brenelz.com/blog/creating-an-ellipsis-in-php/</link> <description>a winnipeg website design company.</description> <lastBuildDate>Thu, 29 Jul 2010 18:34:25 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>By: admin</title><link>http://brenelz.com/blog/creating-an-ellipsis-in-php/comment-page-1/#comment-169</link> <dc:creator>admin</dc:creator> <pubDate>Tue, 16 Dec 2008 19:53:58 +0000</pubDate> <guid isPermaLink="false">http://blog.brenelz.com/?p=413#comment-169</guid> <description>I have added your code above RantingJerk.  Thanks for the input!</description> <content:encoded><![CDATA[<p>I have added your code above RantingJerk.  Thanks for the input!</p> ]]></content:encoded> </item> <item><title>By: RantingJerk</title><link>http://brenelz.com/blog/creating-an-ellipsis-in-php/comment-page-1/#comment-167</link> <dc:creator>RantingJerk</dc:creator> <pubDate>Mon, 15 Dec 2008 02:56:14 +0000</pubDate> <guid isPermaLink="false">http://blog.brenelz.com/?p=413#comment-167</guid> <description>I saw this and couldn&#039;t help but say to myself &quot;goddamn thats a bunch of cruft&quot;,function ellipsis($text, $max=100, $append=&#039;&amp;elip;&#039;) { if (strlen($text) &lt;= $max) return $text; $out = substr($text,0,$max); if (strpos($text,&#039; &#039;) === FALSE) return $out.$append; return preg_replace(&#039;/\w+$/&#039;,&#039;&#039;,$out).$append; }</description> <content:encoded><![CDATA[<p>I saw this and couldn&#8217;t help but say to myself &#8220;goddamn thats a bunch of cruft&#8221;,</p><p>function ellipsis($text, $max=100, $append=&#8217;&elip;&#8217;)<br /> {<br /> if (strlen($text) &lt;= $max) return $text;<br /> $out = substr($text,0,$max);<br /> if (strpos($text,&#8217; &#8216;) === FALSE) return $out.$append;<br /> return preg_replace(&#8216;/\w+$/&#8217;,&#8221;,$out).$append;<br /> }</p> ]]></content:encoded> </item> <item><title>By: Luke Sutton</title><link>http://brenelz.com/blog/creating-an-ellipsis-in-php/comment-page-1/#comment-168</link> <dc:creator>Luke Sutton</dc:creator> <pubDate>Sun, 14 Dec 2008 07:34:56 +0000</pubDate> <guid isPermaLink="false">http://blog.brenelz.com/?p=413#comment-168</guid> <description>FYI, three periods are not an ellipsis.This is:…</description> <content:encoded><![CDATA[<p>FYI, three periods are not an ellipsis.</p><p>This is:</p><p>…</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 3/11 queries in 0.022 seconds using disk
Content Delivery Network via cdnwww.brenelz.com

Served from: brenelz.com @ 2010-08-01 10:21:24 -->