<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://www.bytemycode.com/rssformat.xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>byteMyCode: Snippet Revisions</title>
		<link>http://www.bytemycode.com</link>
		<description>Revisions for this snippet.</description>
		<pubDate>Tue, 02 Dec 2008 18:37:15 +0000</pubDate>
		<copyright>1998-2008 </copyright>
		<language>en-us</language>
		<image>
		      <link>http://www.bytemycode.com</link>
		      <url>http://www.bytemycode.com/img/rss_title.gif</url>
		      <title>byteMyCode</title>
		</image>

	
	<item>
		<title>Find out how many lines will text occupy 1</title>
		<link>http://www.bytemycode.com/snippets/snippet/183/1/</link>
		<comments>http://www.bytemycode.com/snippets/snippet/183/comments/</comments>
		<pubDate>Wed, 22 Mar 2006 08:08:08 +0000</pubDate>
		<dc:creator>nev3rm0re</dc:creator>
		<category>PHP, String</category>
		<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/183/</guid>
		<description>
			<![CDATA[
				<p>This function calculates how many lines will text occupy.<br />Example (simple):<br /><br /><br />$string = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus tincidunt posuere dolor";<br /><br />$num_lines = how_many_lines(10, $string);<br /><br />It accepts a third, optional, parameter $options, that allows you to change behaviour. $options should be array. Following configuration options are available:<br /><br />'white_spaces' - default: array(' ', "\t") - array of chars, that should be treated as whitespace.<br /><br />'new_lines' - default: array("\r\n", "\n") - array of strings, that should be treated as newlines. For example, for HTML you can set 'new_lines' => array('');<br /><br />'force_line_breaks' - default: true - force wrapping, when the token is longer than width, or not. If set to false, and token cannot be fitted into $width, function will return false;<br /><br />'callback' - default: null - callback function for determining character width. Must accept at least one parameter - $char<br /><br />'callback_params' - default: array() - optional additional callback parameters<br /><br />'char_widths' - default: null - associative array in a form $char => $width, which contains char width. If $char is not found in the array, it's width is defaulted to 0.<br /><br /></p>
			]]>
		</description>
	</item>

	
	<item>
		<title>Find out how many lines will text occupy 2</title>
		<link>http://www.bytemycode.com/snippets/snippet/183/2/</link>
		<comments>http://www.bytemycode.com/snippets/snippet/183/comments/</comments>
		<pubDate>Wed, 22 Mar 2006 18:10:57 +0000</pubDate>
		<dc:creator>nev3rm0re</dc:creator>
		<category>PHP, String</category>
		<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/183/</guid>
		<description>
			<![CDATA[
				<p>This function calculates how many lines will text occupy.<br />Example (simple):<br /><br /><br />$string = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus tincidunt posuere dolor";<br /><br />$num_lines = how_many_lines(10, $string);<br /><br />It accepts a third, optional, parameter $options, that allows you to change behaviour. $options should be array. Following configuration options are available:<br /><br />'white_spaces' - default: array(' ', "\t") - array of chars, that should be treated as whitespace.<br /><br />'new_lines' - default: array("\r\n", "\n") - array of strings, that should be treated as newlines. For example, for HTML you can set 'new_lines' => array('');<br /><br />'force_line_breaks' - default: true - force wrapping, when the token is longer than width, or not. If set to false, and token cannot be fitted into $width, function will return false;<br /><br />'callback' - default: null - callback function for determining character width. Must accept at least one parameter - $char<br /><br />'callback_params' - default: array() - optional additional callback parameters<br /><br />'char_widths' - default: null - associative array in a form $char => $width, which contains char width. If $char is not found in the array, it's width is defaulted to 0.<br /><br /></p>
			]]>
		</description>
	</item>

	
	</channel>
</rss>