Location: PHPKode > projects > Moc10 PHP Library > docs/api-docs/elementindex_Moc10_String.html
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html>
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title></title>
			<link rel="stylesheet" href="media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
						<a name="top"></a>
<h2>[Moc10_String] element index</h2>
	<h3>Package indexes</h3>
	<ul>
				<li><a href="elementindex_Moc10_Autoloader.html">Moc10_Autoloader</a></li>
					<li><a href="elementindex_Moc10_Cookie.html">Moc10_Cookie</a></li>
					<li><a href="elementindex_Moc10_Curl.html">Moc10_Curl</a></li>
					<li><a href="elementindex_Moc10_Db.html">Moc10_Db</a></li>
					<li><a href="elementindex_Moc10_Dom.html">Moc10_Dom</a></li>
					<li><a href="elementindex_Moc10_Feed.html">Moc10_Feed</a></li>
					<li><a href="elementindex_Moc10_File.html">Moc10_File</a></li>
					<li><a href="elementindex_Moc10_Form.html">Moc10_Form</a></li>
					<li><a href="elementindex_Moc10_Ftp.html">Moc10_Ftp</a></li>
					<li><a href="elementindex_Moc10_Image.html">Moc10_Image</a></li>
					<li><a href="elementindex_Moc10_Language.html">Moc10_Language</a></li>
					<li><a href="elementindex_Moc10_Mail.html">Moc10_Mail</a></li>
					<li><a href="elementindex_Moc10_Pdf.html">Moc10_Pdf</a></li>
					<li><a href="elementindex_Moc10_Record.html">Moc10_Record</a></li>
					<li><a href="elementindex_Moc10_Session.html">Moc10_Session</a></li>
					</ul>
<a href="elementindex.html">All elements</a>
<br />
<div class="index-letter-menu">
	<a class="index-letter" href="elementindex_Moc10_String.html#a">a</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#b">b</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#d">d</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#e">e</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#g">g</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#h">h</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#i">i</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#l">l</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#m">m</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#p">p</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#r">r</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#s">s</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#t">t</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#u">u</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#w">w</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#_">_</a>
</div>

	<a name="_"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">_</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="var-title">$_string</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#var$_string">Moc10_String::$_string</a> in String.php</div>
							<div class="index-item-description">String property</div>
					</dd>
			<dt class="field">
						<span class="method-title">__construct</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#method__construct">Moc10_String::__construct()</a> in String.php</div>
							<div class="index-item-description">Constructor</div>
					</dd>
			<dt class="field">
						<span class="method-title">__toString</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#method__toString">Moc10_String::__toString()</a> in String.php</div>
							<div class="index-item-description">Method to return the string value for printing output.</div>
					</dd>
		</dl>
	<a name="a"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">a</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="method-title">add</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#methodadd">Moc10_String::add()</a> in String.php</div>
							<div class="index-item-description">Method to add slashes to the string and return the newly edited string.</div>
					</dd>
		</dl>
	<a name="b"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">b</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="method-title">between</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#methodbetween">Moc10_String::between()</a> in String.php</div>
							<div class="index-item-description">Method to return a substring of the string between two delimiters.</div>
					</dd>
			<dt class="field">
						<span class="method-title">br</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#methodbr">Moc10_String::br()</a> in String.php</div>
							<div class="index-item-description">Method to convert newlines in the string to <br /> tags and return the newly edited string.</div>
					</dd>
		</dl>
	<a name="d"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">d</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="method-title">date</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#methoddate">Moc10_String::date()</a> in String.php</div>
							<div class="index-item-description">Method to return a date-formatted string.</div>
					</dd>
			<dt class="field">
						<span class="method-title">dehtml</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#methoddehtml">Moc10_String::dehtml()</a> in String.php</div>
							<div class="index-item-description">Method to convert formatted HTML entities in the string back into special characters and return the newly edited string.</div>
					</dd>
		</dl>
	<a name="e"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">e</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="method-title">escape</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#methodescape">Moc10_String::escape()</a> in String.php</div>
							<div class="index-item-description">Method to simulate escaping a string for DB entry, much like mysql_real_escape_string(), but without requiring a DB connection.</div>
					</dd>
		</dl>
	<a name="g"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">g</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="method-title">glue</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#methodglue">Moc10_String::glue()</a> in String.php</div>
							<div class="index-item-description">Method to glue an array of parts togeter into a string based on the delimiter.</div>
					</dd>
		</dl>
	<a name="h"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">h</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="method-title">html</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#methodhtml">Moc10_String::html()</a> in String.php</div>
							<div class="index-item-description">Method to convert special characters in the string to properly formatted HTML entities and return the newly edited string.</div>
					</dd>
		</dl>
	<a name="i"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">i</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="method-title">ipos</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#methodipos">Moc10_String::ipos()</a> in String.php</div>
							<div class="index-item-description">Method to return the position of the case-insensitive character(s) in the string.</div>
					</dd>
			<dt class="field">
						<span class="method-title">ireplace</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#methodireplace">Moc10_String::ireplace()</a> in String.php</div>
							<div class="index-item-description">Method to replace (case-insensitive) the substring using what was passed as an argument and return the newly edited string.</div>
					</dd>
		</dl>
	<a name="l"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">l</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="method-title">length</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#methodlength">Moc10_String::length()</a> in String.php</div>
							<div class="index-item-description">Method to return the length of the string.</div>
					</dd>
			<dt class="field">
						<span class="method-title">links</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#methodlinks">Moc10_String::links()</a> in String.php</div>
							<div class="index-item-description">Method to convert any links in the string to clickable HTML links.</div>
					</dd>
			<dt class="field">
						<span class="method-title">lower</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#methodlower">Moc10_String::lower()</a> in String.php</div>
							<div class="index-item-description">Method to convert the string to all lowercase and return the newly edited string.</div>
					</dd>
		</dl>
	<a name="m"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">m</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						Moc10_String
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html">Moc10_String</a> in String.php</div>
							<div class="index-item-description">Moc10_String</div>
					</dd>
		</dl>
	<a name="p"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">p</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="method-title">pos</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#methodpos">Moc10_String::pos()</a> in String.php</div>
							<div class="index-item-description">Method to return the position of the character(s) in the string.</div>
					</dd>
			<dt class="field">
						<span class="method-title">preg</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#methodpreg">Moc10_String::preg()</a> in String.php</div>
							<div class="index-item-description">Method to preg_replace the substring using what was passed as an argument and return the newly edited string.</div>
					</dd>
		</dl>
	<a name="r"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">r</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="method-title">random</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#methodrandom">Moc10_String::random()</a> in String.php</div>
							<div class="index-item-description">Method to generate a random alphanumeric string of a predefined length.</div>
					</dd>
			<dt class="field">
						<span class="method-title">replace</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#methodreplace">Moc10_String::replace()</a> in String.php</div>
							<div class="index-item-description">Method to replace the substring that was passed as an argument and return the newly edited string.</div>
					</dd>
		</dl>
	<a name="s"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">s</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="method-title">setString</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#methodsetString">Moc10_String::setString()</a> in String.php</div>
							<div class="index-item-description">Static method to instantiate the string object and return itself  to facilitate chaining methods together.</div>
					</dd>
			<dt class="field">
						<span class="method-title">slug</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#methodslug">Moc10_String::slug()</a> in String.php</div>
							<div class="index-item-description">Method to convert the string into an SEO-friendly slug.</div>
					</dd>
			<dt class="field">
						<span class="method-title">split</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#methodsplit">Moc10_String::split()</a> in String.php</div>
							<div class="index-item-description">Method to return an array of parts of the string based on the delimiter.</div>
					</dd>
			<dt class="field">
						<span class="include-title">String.php</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/_String.php.html">String.php</a> in String.php</div>
					</dd>
			<dt class="field">
						<span class="method-title">strip</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#methodstrip">Moc10_String::strip()</a> in String.php</div>
							<div class="index-item-description">Method to strip slashes from the string and return the newly edited string.</div>
					</dd>
			<dt class="field">
						<span class="method-title">striptags</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#methodstriptags">Moc10_String::striptags()</a> in String.php</div>
							<div class="index-item-description">Method to strip HTML tags from the string and return the newly edited string.</div>
					</dd>
			<dt class="field">
						<span class="method-title">sub</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#methodsub">Moc10_String::sub()</a> in String.php</div>
							<div class="index-item-description">Method to return a substring of the string.</div>
					</dd>
		</dl>
	<a name="t"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">t</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="method-title">trim</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#methodtrim">Moc10_String::trim()</a> in String.php</div>
							<div class="index-item-description">Method to trim the whitespace at the beginning and end of the string and return the newly edited string.</div>
					</dd>
		</dl>
	<a name="u"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">u</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="method-title">upper</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#methodupper">Moc10_String::upper()</a> in String.php</div>
							<div class="index-item-description">Method to convert the first letter of each word in the string to uppercase and return the newly edited string.</div>
					</dd>
			<dt class="field">
						<span class="method-title">upperall</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#methodupperall">Moc10_String::upperall()</a> in String.php</div>
							<div class="index-item-description">Method to convert the string to all uppercase and return the newly edited string.</div>
					</dd>
			<dt class="field">
						<span class="method-title">upperfirst</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#methodupperfirst">Moc10_String::upperfirst()</a> in String.php</div>
							<div class="index-item-description">Method to convert the first letter of a string to uppercase and return the newly edited string.</div>
					</dd>
		</dl>
	<a name="w"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">w</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="method-title">wrap</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_String/Moc10_String.html#methodwrap">Moc10_String::wrap()</a> in String.php</div>
							<div class="index-item-description">Method to perform a word wrap on a string.</div>
					</dd>
		</dl>

<div class="index-letter-menu">
	<a class="index-letter" href="elementindex_Moc10_String.html#a">a</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#b">b</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#d">d</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#e">e</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#g">g</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#h">h</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#i">i</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#l">l</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#m">m</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#p">p</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#r">r</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#s">s</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#t">t</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#u">u</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#w">w</a>
	<a class="index-letter" href="elementindex_Moc10_String.html#_">_</a>
</div>	</body>
</html>
Return current item: Moc10 PHP Library