<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7867839376193822500</id><updated>2011-11-27T15:39:26.615-08:00</updated><title type='text'>php php php</title><subtitle type='html'>PHP Help !</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://phpphpphp.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867839376193822500/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://phpphpphp.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>editor</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7867839376193822500.post-7885857213980571228</id><published>2007-01-26T06:39:00.001-08:00</published><updated>2007-01-26T06:39:49.386-08:00</updated><title type='text'>php - chr function</title><content type='html'>&lt;h1&gt;chr&lt;/h1&gt;&lt;span style="font-weight: bold;"&gt;(PHP 3, PHP 4, PHP 5)&lt;/span&gt;&lt;br /&gt;chr -- Return a specific character&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Description&lt;/span&gt;&lt;br /&gt;string chr ( int ascii )&lt;br /&gt;&lt;br /&gt;Returns a one-character string containing the character specified by ascii.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Example 1:&lt;/span&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;$str .= chr(27); /* add an escape character at the end of $str */&lt;br /&gt;&lt;br /&gt;/* Often this is more useful */&lt;br /&gt;&lt;br /&gt;$str = sprintf("The string ends in escape: %c", 27);&lt;br /&gt;?&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7867839376193822500-7885857213980571228?l=phpphpphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867839376193822500/posts/default/7885857213980571228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867839376193822500/posts/default/7885857213980571228'/><link rel='alternate' type='text/html' href='http://phpphpphp.blogspot.com/2007/01/php-chr-function.html' title='php - chr function'/><author><name>editor</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7867839376193822500.post-1656934369047807930</id><published>2007-01-25T22:00:00.000-08:00</published><updated>2007-01-25T22:17:56.534-08:00</updated><title type='text'>php - chop function</title><content type='html'>&lt;h1&gt;&lt;a href="http://phpphpphp.blogspot.com/2007/01/php-chop-function.html"&gt;chop&lt;/a&gt;&lt;/h1&gt;&lt;span style="font-weight: bold;"&gt;(PHP 3, PHP 4, PHP 5)&lt;/span&gt;&lt;br /&gt;&lt;a href="http://phpphpphp.blogspot.com/2007/01/php-chop-function.html"&gt;chop&lt;/a&gt; -- Alias of rtrim()&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Description&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This function is an alias of: rtrim().&lt;br /&gt;&lt;br /&gt;Note: &lt;a href="http://phpphpphp.blogspot.com/2007/01/php-chop-function.html"&gt;chop()&lt;/a&gt; is different than the Perl &lt;a href="http://phpphpphp.blogspot.com/2007/01/php-chop-function.html"&gt;chop() function&lt;/a&gt;, which removes the last character in the string.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Example 1:&lt;br /&gt;&lt;/span&gt;To get a perl style &lt;a href="http://phpphpphp.blogspot.com/2007/01/php-chop-function.html"&gt;chop&lt;/a&gt;():&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&amp;lt;?php&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;$foo = "bar";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;$foo = substr("$foo", 0, -1);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;echo $foo;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;//returns "ba" (removes last character)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;?&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Example 2:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&amp;lt;?php&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;$str = "i am best !\n\n";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;echo $str;  &lt;span style="color: rgb(0, 153, 0);"&gt;// displaying value before &lt;a href="http://phpphpphp.blogspot.com/2007/01/php-chop-function.html"&gt;chop function&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;echo &lt;a href="http://phpphpphp.blogspot.com/2007/01/php-chop-function.html"&gt;chop&lt;/a&gt;($str); &lt;span style="color: rgb(0, 153, 0);"&gt;// displaying value with &lt;a href="http://phpphpphp.blogspot.com/2007/01/php-chop-function.html"&gt;chop&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://phpphpphp.blogspot.com/2007/01/php-chop-function.html"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; function&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;?&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Out Put Will Be :(HTML)&lt;/span&gt;&lt;br /&gt;&amp;lt;html&amp;lt;&lt;br /&gt;&amp;lt;body&amp;lt;&lt;br /&gt;i am best !&lt;br /&gt;&lt;br /&gt;i am best !&amp;lt;/body&amp;lt;&lt;br /&gt;&amp;lt;/html&amp;lt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;In the above example &lt;a href="http://phpphpphp.blogspot.com/2007/01/php-chop-function.html"&gt;chop function&lt;/a&gt; has removed "\n\n"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Page Out Put Will Be :&lt;/span&gt; i am best !i am best !&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7867839376193822500-1656934369047807930?l=phpphpphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867839376193822500/posts/default/1656934369047807930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867839376193822500/posts/default/1656934369047807930'/><link rel='alternate' type='text/html' href='http://phpphpphp.blogspot.com/2007/01/php-chop-function.html' title='php - chop function'/><author><name>editor</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7867839376193822500.post-4842891028328803338</id><published>2007-01-24T22:39:00.000-08:00</published><updated>2007-01-24T22:43:18.201-08:00</updated><title type='text'>php - bin2hex function</title><content type='html'>&lt;h1&gt;bin2hex&lt;br /&gt;&lt;/h1&gt;&lt;span style="font-weight: bold;"&gt;(PHP 3 &gt;= 3.0.9, PHP 4, PHP 5)&lt;/span&gt;&lt;br /&gt;bin2hex --  Convert binary data into hexadecimal representation&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Description&lt;/span&gt;&lt;br /&gt;string bin2hex ( string str )&lt;br /&gt;&lt;br /&gt;Returns an ASCII string containing the hexadecimal representation of str. The conversion is done byte-wise with the high-nibble first.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7867839376193822500-4842891028328803338?l=phpphpphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867839376193822500/posts/default/4842891028328803338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867839376193822500/posts/default/4842891028328803338'/><link rel='alternate' type='text/html' href='http://phpphpphp.blogspot.com/2007/01/php-bin2hex-function.html' title='php - bin2hex function'/><author><name>editor</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7867839376193822500.post-21749929417822609</id><published>2007-01-24T22:18:00.000-08:00</published><updated>2007-01-24T22:34:10.044-08:00</updated><title type='text'>php - addslashes function</title><content type='html'>&lt;h1&gt;addslashes&lt;/h1&gt;&lt;span style="font-weight: bold;"&gt;(PHP 3, PHP 4, PHP 5)&lt;/span&gt;&lt;br /&gt;&lt;a href="http://phpphpphp.blogspot.com/2007/01/php-addslashes-function.html"&gt;addslashes&lt;/a&gt; -- Quote string with slashes&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Description&lt;/span&gt;&lt;br /&gt;string &lt;a href="http://phpphpphp.blogspot.com/2007/01/php-addslashes-function.html"&gt;addslashes&lt;/a&gt; ( string str )&lt;br /&gt;&lt;br /&gt;Returns a string with backslashes before characters that need to be quoted in database queries etc. These characters are single quote ('), double quote ("), backslash (\) and NUL (the NULL byte).&lt;br /&gt;&lt;br /&gt;An example use of &lt;a href="http://phpphpphp.blogspot.com/2007/01/php-addslashes-function.html"&gt;addslashes&lt;/a&gt;() is when you're entering data into a database. For example, to insert the name O'reilly into a database, you will need to escape it. Most databases do this with a \ which would mean O\'reilly. This would only be to get the data into the database, the extra \ will not be inserted. Having the &lt;a href="http://phpphpphp.blogspot.com/"&gt;PHP&lt;/a&gt; directive magic_quotes_sybase set to on will mean ' is instead escaped with another '.&lt;br /&gt;&lt;br /&gt;The &lt;a href="http://phpphpphp.blogspot.com/"&gt;PHP&lt;/a&gt; directive magic_quotes_gpc is on by default, and it essentially runs &lt;a href="http://phpphpphp.blogspot.com/2007/01/php-addslashes-function.html"&gt;addslashes&lt;/a&gt;() on all GET, POST, and COOKIE data. Do not use &lt;a href="http://phpphpphp.blogspot.com/2007/01/php-addslashes-function.html"&gt;addslashes&lt;/a&gt;() on strings that have already been escaped with magic_quotes_gpc as you'll then do double escaping. The function get_magic_quotes_gpc() may come in handy for checking this.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Example (1):&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&amp;lt;?php&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;$str = "Is your name O'reilly?";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;// Outputs: Is your name O\'reilly?&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;echo &lt;a href="http://phpphpphp.blogspot.com/2007/01/php-addslashes-function.html"&gt;addslashes&lt;/a&gt;($str);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;?&gt; &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7867839376193822500-21749929417822609?l=phpphpphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867839376193822500/posts/default/21749929417822609'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867839376193822500/posts/default/21749929417822609'/><link rel='alternate' type='text/html' href='http://phpphpphp.blogspot.com/2007/01/php-addslashes-function.html' title='php - addslashes function'/><author><name>editor</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7867839376193822500.post-1149029858493606995</id><published>2007-01-24T21:37:00.000-08:00</published><updated>2007-01-24T21:53:36.379-08:00</updated><title type='text'>php - addcslashes function</title><content type='html'>&lt;h1&gt;addcslashes&lt;/h1&gt;&lt;span style="font-weight: bold;"&gt;(PHP 4, PHP 5)&lt;/span&gt;&lt;br /&gt;addcslashes -- Quote string with slashes in a C style&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Description&lt;/span&gt;&lt;br /&gt;string addcslashes ( string str, string charlist )&lt;br /&gt;&lt;br /&gt;Returns a string with backslashes before characters that are listed in charlist parameter. If charlist contains characters \n, \r etc., they are converted in C-like style, while other non-alphanumeric characters with ASCII codes lower than 32 and higher than 126 converted to octal representation.&lt;br /&gt;&lt;br /&gt;Be careful if you choose to escape characters 0, a, b, f, n, r, t and v. They will be converted to \0, \a, \b, \f, \n, \r, \t and \v. In &lt;a href="http://phpphpphp.blogspot.com/"&gt;PHP&lt;/a&gt; \0 (NULL), \r (carriage return), \n (newline) and \t (tab) are predefined escape sequences, while in C all of these are predefined escape sequences.&lt;br /&gt;&lt;br /&gt;charlist like "\0..\37", which would escape all characters with &lt;a href="http://phpphpphp.blogspot.com/"&gt;ASCII&lt;/a&gt; code between 0 and 31.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Example (1):&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&amp;lt;?&lt;a href="http://phpphpphp.blogspot.com"&gt;php&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;echo &lt;a href="http://phpphpphp.blogspot.com/2007/01/php-addcslashes-function.html"&gt;addcslashes&lt;/a&gt;('foo[ ]', 'A..z');&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;// output:  \f\o\o\[ \]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;// All upper and lower-case letters will be escaped&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;// ... but so will the [\]^_` and any tabs, line&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;// feeds, carriage returns, etc.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;?&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7867839376193822500-1149029858493606995?l=phpphpphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867839376193822500/posts/default/1149029858493606995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867839376193822500/posts/default/1149029858493606995'/><link rel='alternate' type='text/html' href='http://phpphpphp.blogspot.com/2007/01/php-addcslashes-function.html' title='php - addcslashes function'/><author><name>editor</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7867839376193822500.post-8287779478231294808</id><published>2007-01-24T21:08:00.000-08:00</published><updated>2007-01-24T22:38:19.609-08:00</updated><title type='text'>Welcome to Help</title><content type='html'>Welcome to PHP phpphpphp.blogspot.com : Your &lt;a href="http://phpphpphp.blogspot.com/"&gt;PHP Help&lt;/a&gt; Center!&lt;br /&gt;&lt;br /&gt;This website exists to provide you with information to use while learning or developing &lt;a href="http://phpphpphp.blogspot.com/"&gt;PHP&lt;/a&gt; and &lt;a href="http://help-mysql.blogspot.com"&gt;MySQL&lt;/a&gt;. If you need &lt;a href="http://phpphpphp.blogspot.com/"&gt;PHP Help&lt;/a&gt; or you would like to provide &lt;a href="http://phpphpphp.blogspot.com/"&gt;PHP Help&lt;/a&gt; to other developers, you are in the right place. Additionally, we offer Apache Help, &lt;a href="http://help-mysql.blogspot.com"&gt;MySQL Help&lt;/a&gt;, Javascript Help, CSS Help, XML Help and much more.&lt;br /&gt;&lt;br /&gt;This is a community website and we ask that you join to gain access to our interactive features and also assist others by sharing your knowledge about &lt;a href="http://phpphpphp.blogspot.com"&gt;PHP&lt;/a&gt; and &lt;a href="http://help-mysql.blogspot.com"&gt;MySQL&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7867839376193822500-8287779478231294808?l=phpphpphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7867839376193822500/posts/default/8287779478231294808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7867839376193822500/posts/default/8287779478231294808'/><link rel='alternate' type='text/html' href='http://phpphpphp.blogspot.com/2007/01/welcome-to-help.html' title='Welcome to Help'/><author><name>editor</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>
