<?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>Quick Solution Providers &#187; Beginners</title>
	<atom:link href="http://www.quicksolutionproviders.com/category/php/beginners/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.quicksolutionproviders.com</link>
	<description>Complete Solution for your problems under one roof</description>
	<lastBuildDate>Sun, 22 Aug 2010 08:23:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>how to download a file without display download request</title>
		<link>http://www.quicksolutionproviders.com/php/how-to-download-a-file-without-display-download-request/</link>
		<comments>http://www.quicksolutionproviders.com/php/how-to-download-a-file-without-display-download-request/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 10:20:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Beginners]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[attachment]]></category>
		<category><![CDATA[Content type]]></category>
		<category><![CDATA[Content-Disposition]]></category>
		<category><![CDATA[direct download]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[filename]]></category>
		<category><![CDATA[pdf download]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=297</guid>
		<description><![CDATA[Usually when we try to download something from a server we get a confirmation request whether you want to save the file or open it.
To avoid this request you can use the below code and then user can directly download that file without any message.
First give a link or a button for user to download [...]]]></description>
			<content:encoded><![CDATA[<p>Usually when we try to download something from a server we get a confirmation request whether you want to save the file or open it.<br />
To avoid this request you can use the below code and then user can directly download that file without any message.</p>
<p>First give a link or a button for user to download and when they click redirect them to a file which will have the code below.</p>
<p><strong>suppose you want user to download a pdf file then first make a link like this:</strong></p>
<p><strong>&lt;a href=&#8221;javascript:void();&#8221; onClick=&#8221;location.href=&#8217;doc/document_download.php&#8217;&#8221;&gt;download pdf&lt;/a&gt;</strong></p>
<p><span id="more-297"></span></p>
<p>Then make a file document_download.php with the code below:</p>
<p>&lt;?php<br />
// We&#8217;ll be outputting a PDF<br />
header(&#8217;Content-type: application/pdf&#8217;);</p>
<p>// It will be called downloaded.pdf<br />
header(&#8217;Content-Disposition: attachment; filename=my.pdf&#8217;);</p>
<p>// The PDF source is in original.pdf<br />
readfile(&#8217;my.pdf&#8217;);</p>
<p>?&gt;</p>
<p><strong>Replace my.pdf with the name of your pdf.If you don&#8217;t want to hardcode the file name then you can send file name with the url like this:</strong></p>
<p>&lt;ahref=&#8221;javascript:void();&#8221; onClick=&#8221;location.href=&#8217;doc/document_download.php?fileName=my.pdf&#8217;&#8221;&gt;download pdf&lt;/a&gt;<br />
<strong>and then:</strong><br />
&lt;?php<br />
// We&#8217;ll be outputting a PDF<br />
header(&#8217;Content-type: application/pdf&#8217;);</p>
<p>// It will be called downloaded.pdf<br />
header(&#8217;Content-Disposition: attachment; filename=&#8221;&#8216;.$_REQUEST['fileName'].&#8217;&#8221;&#8216;);</p>
<p>// The PDF source is in original.pdf<br />
readfile($_REQUEST['fileName']);</p>
<p>?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/php/how-to-download-a-file-without-display-download-request/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to run code of php5 on a server with php4 using htaccess</title>
		<link>http://www.quicksolutionproviders.com/php/how-to-run-code-of-php5-on-a-server-with-php4-using-htaccess/</link>
		<comments>http://www.quicksolutionproviders.com/php/how-to-run-code-of-php5-on-a-server-with-php4-using-htaccess/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 09:52:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Beginners]]></category>
		<category><![CDATA[Experts]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[AddHandler]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[php4]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=294</guid>
		<description><![CDATA[This is big question for beginners every time.Now as we know that php5 is in full flow but still there are lot of servers out there with php4 and if you upload your php5 code on those servers then it will be mess.May be your site will not run or any part or your will [...]]]></description>
			<content:encoded><![CDATA[<p>This is big question for beginners every time.Now as we know that php5 is in full flow but still there are lot of servers out there with php4 and if you upload your php5 code on those servers then it will be mess.May be your site will not run or any part or your will go down.But don&#8217;t worry friends , there are only 2 lines to put this problem far from you.<br />
Just put these 2 lines below in a htaccess file and put that htaccess at the root directory.</p>
<p><strong>AddHandler x-httpd-php5 .php<br />
AddHandler x-httpd-php .php4</strong></p>
<p>Now all the modules either they have written in php4 or php5 will work very well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/php/how-to-run-code-of-php5-on-a-server-with-php4-using-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Php mail function</title>
		<link>http://www.quicksolutionproviders.com/php/php-mail-function/</link>
		<comments>http://www.quicksolutionproviders.com/php/php-mail-function/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 09:55:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Beginners]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[delivery]]></category>
		<category><![CDATA[from]]></category>
		<category><![CDATA[headers]]></category>
		<category><![CDATA[html mail]]></category>
		<category><![CDATA[mail function]]></category>
		<category><![CDATA[mail()]]></category>
		<category><![CDATA[message]]></category>
		<category><![CDATA[parameters]]></category>
		<category><![CDATA[php mail]]></category>
		<category><![CDATA[send mail]]></category>
		<category><![CDATA[subject]]></category>
		<category><![CDATA[text mail]]></category>
		<category><![CDATA[to]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=230</guid>
		<description><![CDATA[The mail() function allows you to send emails directly from a script.  This function returns TRUE if the email was successfully accepted for delivery, otherwise it returns FALSE.
bool mail ( string $to , string $subject , string $message [, string $additional_headers [, string $additional_parameters ]] )
To send email using PHP, you use the mail() [...]]]></description>
			<content:encoded><![CDATA[<p>The mail() function allows you to send emails directly from a script.  This function returns TRUE if the email was successfully accepted for delivery, otherwise it returns FALSE.</p>
<p><span>bool</span> <span><strong>mail</strong></span> ( <span><span>string</span> <tt>$to</tt></span> , <span><span>string</span> <tt>$subject</tt></span> , <span><span>string</span> <tt>$message</tt></span> [, <span><span>string</span> <tt>$additional_headers</tt></span> [, <span><span>string</span> <tt>$additional_parameters</tt></span> ]] )</p>
<p>To send email using PHP, you use the <em>mail()</em> function. This accepts 5 parameters as follows (the last 2 are optional)</p>
<p><span id="more-230"></span></p>
<table border="0">
<tbody>
<tr>
<td valign="top">to</td>
<td valign="top">Required. The recipient&#8217;s email address.</td>
</tr>
<tr>
<td valign="top">subject</td>
<td valign="top">Required. The email&#8217;s subject line.</td>
</tr>
<tr>
<td valign="top">message</td>
<td valign="top">Required. The actual email body.</td>
</tr>
<tr>
<td valign="top">headers</td>
<td valign="top">Optional. Additional header fields such as &#8220;From&#8221;, &#8220;Cc&#8221;, &#8220;Bcc&#8221; etc.</td>
</tr>
<tr>
<td valign="top">parameters</td>
<td valign="top">Optional. Any additional parameters.</td>
</tr>
</tbody>
</table>
<p>You can email as a text type mail or html mail.<br />
<strong>A simple text type mail example :</strong></p>
<p>&lt;?php<br />
$to      = &#8216;nobody@example.com&#8217;;<br />
$subject = &#8216;the subject&#8217;;<br />
$message = &#8216;hello&#8217;;<br />
$headers = &#8216;From: webmaster@example.com&#8217; . &#8220;\r\n&#8221; .<br />
&#8216;Reply-To: webmaster@example.com&#8217; . &#8220;\r\n&#8221; .<br />
&#8216;X-Mailer: PHP/&#8217; . phpversion();</p>
<p>mail($to, $subject, $message, $headers);<br />
?&gt;</p>
<p><strong>A simple html mail example :</strong></p>
<p>// multiple recipients<br />
$to  = &#8216;nobody@example.com&#8217; . &#8216;, &#8216;; // note the comma<br />
$to .= &#8216;admin@example.com&#8217;;</p>
<p>// subject<br />
$subject = &#8216;Birthday Reminders for August&#8217;;</p>
<p>// message<br />
$message = &#8216;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Birthday Reminders for August&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;p&gt;Here are the birthdays upcoming in August!&lt;/p&gt;<br />
&lt;table&gt;<br />
&lt;tr&gt;<br />
&lt;th&gt;Person&lt;/th&gt;&lt;th&gt;Day&lt;/th&gt;&lt;th&gt;Month&lt;/th&gt;&lt;th&gt;Year&lt;/th&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;Joe&lt;/td&gt;&lt;td&gt;3rd&lt;/td&gt;&lt;td&gt;August&lt;/td&gt;&lt;td&gt;1970&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;Sally&lt;/td&gt;&lt;td&gt;17th&lt;/td&gt;&lt;td&gt;August&lt;/td&gt;&lt;td&gt;1973&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
&#8216;;</p>
<p>// To send HTML mail, the Content-type header must be set<br />
$headers  = &#8216;MIME-Version: 1.0&#8242; . &#8220;\r\n&#8221;;<br />
$headers .= &#8216;Content-type: text/html; charset=iso-8859-1&#8242; . &#8220;\r\n&#8221;;</p>
<p>// Additional headers<br />
$headers .= &#8216;To: nobody , nobody &#8216; . &#8220;\r\n&#8221;;<br />
$headers .= &#8216;From: Birthday Reminder &#8216; . &#8220;\r\n&#8221;;<br />
$headers .= &#8216;Cc: admin1@example.com&#8217; . &#8220;\r\n&#8221;;<br />
$headers .= &#8216;Bcc: admin2@example.com&#8217; . &#8220;\r\n&#8221;;</p>
<p>// Mail it<br />
mail($to, $subject, $message, $headers);<br />
?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/php/php-mail-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sessions in php</title>
		<link>http://www.quicksolutionproviders.com/php/sessions-in-php/</link>
		<comments>http://www.quicksolutionproviders.com/php/sessions-in-php/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 06:08:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Beginners]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[Destroy session]]></category>
		<category><![CDATA[isset]]></category>
		<category><![CDATA[Multidimensional Arrays]]></category>
		<category><![CDATA[passing value]]></category>
		<category><![CDATA[PHP session]]></category>
		<category><![CDATA[print_r]]></category>
		<category><![CDATA[session]]></category>
		<category><![CDATA[session array]]></category>
		<category><![CDATA[session_destroy]]></category>
		<category><![CDATA[session_start]]></category>
		<category><![CDATA[unset]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=213</guid>
		<description><![CDATA[I always try to provide good information to beginners in php because these small looking problems may be big problem for a beginner. Session are one of them.
We use sessions when we get to a stage where our website need to pass along user data from one page to another.
A normal HTML website will not [...]]]></description>
			<content:encoded><![CDATA[<p>I always try to provide good information to beginners in php because these small looking problems may be big problem for a beginner. Session are one of them.<br />
We use sessions when we get to a stage where our website need to pass along user data from one page to another.</p>
<p>A normal HTML website will not pass data from one page to another. In other words, all information is forgotten when a new page is loaded. This makes it quite a problem for tasks like a shopping cart, which requires data(the user&#8217;s selected product) to be remembered from one page to the next.</p>
<p>Using session you can send information between one page to another.However, this session information is temporary and is usually deleted very quickly after the user has left the website that uses sessions. Sessions work by creating a unique identification(UID) number for each visitor and storing variables based on this ID. This helps to prevent two users&#8217; data from getting confused with one another when visiting the same web page.<br />
<span id="more-213"></span><br />
Before you start using sessions in php below is a simple script that you should place at the beginning of your PHP page to start using a PHP session.otherwise you can not access the session value.<br />
PHP Code:<br />
&lt;?php<br />
session_start(); // start up your PHP session!<br />
?&gt;</p>
<p>Now you can make a session variable like this.<br />
&lt;?php<br />
$_SESSION['views'] = 1; // store session data<br />
echo &#8220;Pageviews = &#8220;. $_SESSION['views']; //retrieve data<br />
?&gt;<br />
Basically php stores session data in an array like post or get array.So when you declare any session variable php automatically add that value in session array and you can access that value from that array anywhere on your site.you can print session array like this.<br />
&lt;?php<br />
print_r($_SESSION);<br />
?&gt;</p>
<p>If you want to check that a session variable exists or not you can use php&#8217;e isset function like this.</p>
<p>&lt;?php<br />
session_start();<br />
if(isset($_SESSION['views']))<br />
$_SESSION['views'] = $_SESSION['views']+ 1;<br />
else<br />
$_SESSION['views'] = 1;</p>
<p>echo &#8220;views = &#8220;. $_SESSION['views'];<br />
?&gt;</p>
<p><strong>Cleaning and Destroying your Session</strong></p>
<p>Although a session&#8217;s data is temporary and does not require that you explicitly clean after yourself, you may wish to delete some data for your various tasks.</p>
<p>Imagine that you were running an online business and a user used your website to buy your goods. The user has just completed a transaction on your website and you now want to remove everything from their shopping cart.<br />
PHP Code:</p>
<p>&lt;?php<br />
session_start();<br />
if(isset($_SESSION['cart']))<br />
unset($_SESSION['cart']);<br />
?&gt;</p>
<p>You can also completely destroy the session entirely by calling the session_destroy function.</p>
<p>&lt;?php<br />
session_start();<br />
session_destroy();<br />
?&gt;</p>
<p><strong>session_destroy() will completely destroy all session data from your site.<br />
Remember to place session_start() function at the top of page.You can write this anywhere in your script but sometimes it makes problem for you so its good to place session_start() function at the top of page.</strong></p>
<p>You can make multidimensional arrays of sessions like normal arrays in php<br />
If you want to learn about <a href="http://www.quicksolutionproviders.com/php/arrays-in-php/" target="_self"><span style="color: #990000;">multidimensional arrays</span></a> then follow <a href="http://www.quicksolutionproviders.com/php/arrays-in-php/" target="_self"><span style="color: #990000;">this link</span></a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/php/sessions-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arrays in php</title>
		<link>http://www.quicksolutionproviders.com/php/arrays-in-php/</link>
		<comments>http://www.quicksolutionproviders.com/php/arrays-in-php/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 05:31:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Beginners]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[array_pop]]></category>
		<category><![CDATA[array_push]]></category>
		<category><![CDATA[dimensions]]></category>
		<category><![CDATA[in_array]]></category>
		<category><![CDATA[is_array]]></category>
		<category><![CDATA[javascript array]]></category>
		<category><![CDATA[key]]></category>
		<category><![CDATA[ksort]]></category>
		<category><![CDATA[Multidimensional]]></category>
		<category><![CDATA[rsort]]></category>
		<category><![CDATA[sort]]></category>
		<category><![CDATA[Three-dimensional Arrays]]></category>
		<category><![CDATA[Two-dimensional Arrays]]></category>
		<category><![CDATA[value]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=206</guid>
		<description><![CDATA[Arrays are always a big and typical topic for php beginners.Some times they left their job because of arrays.I was also one of them .But after a long experience now i understand that arrays are too easy in php like eating food because php has allready provided readymade funda for arrays .You just have to [...]]]></description>
			<content:encoded><![CDATA[<p>Arrays are always a big and typical topic for php beginners.Some times they left their job because of arrays.I was also one of them .But after a long experience now i understand that arrays are too easy in php like eating food because php has allready provided readymade funda for arrays .You just have to use that logic and nothing else.</p>
<p>An array in PHP is a collection of values. Like A map  that associates values to keys. In an array each values associate to an Unique key and you can access valuse by using that key. As array values can be other arrays, trees and multidimensional arrays are also possible.</p>
<p><span id="more-206"></span></p>
<p>An array can be created by the array()  language construct. It takes as parameters any number of comma-separated key =&gt;  value pairs.</p>
<p>&lt;?php<br />
$a=array(&#8221;a&#8221;=&gt;&#8221;Dog&#8221;,&#8221;b&#8221;=&gt;&#8221;Cat&#8221;,&#8221;c&#8221;=&gt;&#8221;Horse&#8221;);<br />
print_r($a);<br />
?&gt;</p>
<p>The output of the code above will be:<br />
Array ( [a] =&gt; Dog [b] =&gt; Cat [c] =&gt; Horse )</p>
<p>you can also write like this.<br />
&lt;?php<br />
$a=array(&#8221;Dog&#8221;,&#8221;Cat&#8221;,&#8221;Horse&#8221;);<br />
print_r($a);<br />
?&gt;<br />
result will be same for both examples above.</p>
<p>&lt;?php<br />
$arr = array(&#8221;foo&#8221; =&gt; &#8220;bar&#8221;, 12 =&gt; true);</p>
<p>echo $arr["foo"]; // bar<br />
echo $arr[12];    // 1<br />
?&gt;<br />
A key may be either an integer or a string. If a key is the standard representation of an integer, it will be interpreted as such (i.e. &#8220;8&#8243; will be interpreted as 8, while &#8220;08&#8243; will be interpreted as &#8220;08&#8243;). Floats in key are truncated to integer. The indexed and associative array types are the same type in PHP, which can both contain integer and string indices.</p>
<p>Array does not have to be a simple list of keys and values; each array element can contain another array as a value, which in turn can hold other arrays as well. In such a way you can create two-dimensional or three-dimensional array.</p>
<p><strong>* Two-dimensional Arrays<br />
* Three-dimensional Arrays</strong></p>
<p><strong>Two-dimensional Arrays</strong></p>
<p>if you need to keep more than one item of each type you need to use something different &#8211; one of the ways to do it is using multidimensional arrays. see the code below to make a Two-dimensional Array</p>
<p>&lt;?php<br />
$example = array( array(&#8221;rose&#8221;, 1.25 , 15),<br />
array(&#8221;daisy&#8221;, 0.75 , 25),<br />
array(&#8221;orchid&#8221;, 1.15 , 7)<br />
);<br />
?&gt;</p>
<p>you can access array values like this :-&gt;<br />
&lt;?php<br />
echo $example[0][0].&#8217;-&#8217;.$example[0][1].&#8221;&lt;br /&gt;&#8221;;<br />
// this will output rose-1.25<br />
?&gt;<br />
You can also make a Two-dimensional Array liek this.<br />
&lt;?php<br />
$example = array( array( &#8220;Title&#8221; =&gt; &#8220;rose&#8221;,<br />
&#8220;Price&#8221; =&gt; 1.25,<br />
&#8220;Number&#8221; =&gt; 15<br />
),<br />
array( &#8220;Title&#8221; =&gt; &#8220;daisy&#8221;,<br />
&#8220;Price&#8221; =&gt; 0.75,<br />
&#8220;Number&#8221; =&gt; 25,<br />
),<br />
array( &#8220;Title&#8221; =&gt; &#8220;orchid&#8221;,<br />
&#8220;Price&#8221; =&gt; 1.15,<br />
&#8220;Number&#8221; =&gt; 7<br />
)<br />
);<br />
?&gt;<br />
Now you can access values like this.<br />
&lt;?php<br />
echo $example[0]["Title"].&#8217;-&#8217;.$example[0]["Price"].&#8221;&lt;br /&gt;&#8221;;<br />
// this will output rose-1.25<br />
?&gt;</p>
<p><strong>Three-dimensional Arrays</strong></p>
<p>You don’t have to be limited by two dimensions: the same way as array elements can contain other arrays, these arrays, in their turn, can contain new arrays.</p>
<p>Three-dimensional array is characterized by height, width, and depth. If you feel comfortable to imagine two-dimensional array as a table, then imagine a pile of such tables.  Each element can be referenced by its layer, row, and column.</p>
<p>If we classify flowers in our shop into categories, then we can keep data on them using three-dimensional array. We can see from the code below, that three-dimensional array is an array containing array of arrays:</p>
<p>&lt;?php<br />
$example = array(array(array(&#8221;rose&#8221;, 1.25, 15),<br />
array(&#8221;daisy&#8221;, 0.75, 25),<br />
array(&#8221;orchid&#8221;, 1.15, 7)<br />
),<br />
array(array(&#8221;rose&#8221;, 1.25, 15),<br />
array(&#8221;daisy&#8221;, 0.75, 25),<br />
array(&#8221;orchid&#8221;, 1.15, 7)<br />
),<br />
array(array(&#8221;rose&#8221;, 1.25, 15),<br />
array(&#8221;daisy&#8221;, 0.75, 25),<br />
array(&#8221;orchid&#8221;, 1.15, 7)<br />
)<br />
);<br />
?&gt;</p>
<p>Now you can access values like this.<br />
&lt;?php<br />
echo $example[0][0][0].&#8217;-&#8217;.$example[0][0][1].&#8221;&lt;br /&gt;&#8221;;<br />
// this will output rose-1.25<br />
?&gt;</p>
<p>This way of creating multidimensional arrays allows to create four- and five-dimensional arrays. Syntax rules do not limit the number of dimensions, but the majority of practical tasks logically correspond to the constructions of three or less dimensions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/php/arrays-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>output of the ucwords function?</title>
		<link>http://www.quicksolutionproviders.com/php/output-of-the-ucwords-function/</link>
		<comments>http://www.quicksolutionproviders.com/php/output-of-the-ucwords-function/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 20:57:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Beginners]]></category>
		<category><![CDATA[Php]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=178</guid>
		<description><![CDATA[$formatted = ucwords(&#8221;quick solution providers&#8221;);
print $formatted;
What will be printed is Quick Solution Providers.
ucwords() makes every first letter of every word capital, but it does not lower-case anything else. To avoid this, and get a properly formatted string, it’s worth using strtolower() first. 
]]></description>
			<content:encoded><![CDATA[<p>$formatted = ucwords(&#8221;quick solution providers&#8221;);<br />
print $formatted;<br />
What will be printed is Quick Solution Providers.<br />
ucwords() makes every first letter of every word capital, but it does not lower-case anything else. To avoid this, and get a properly formatted string, it’s worth using strtolower() first. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/php/output-of-the-ucwords-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to show 50 characters per line from a long sentences with PHP?</title>
		<link>http://www.quicksolutionproviders.com/php/how-to-show-50-characters-per-line-with-php/</link>
		<comments>http://www.quicksolutionproviders.com/php/how-to-show-50-characters-per-line-with-php/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 20:53:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Beginners]]></category>
		<category><![CDATA[Php]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=174</guid>
		<description><![CDATA[On large strings that need to be formatted according to some length specifications, php provide some function as use
1. wordwrap()
wordwrap — Wraps a string to a given number of characters
string wordwrap ( string $str [, int $width [, string $break [, bool $cut]]] )
str
The input string.
width
The column width. Defaults to 75.
break
The line is broken using [...]]]></description>
			<content:encoded><![CDATA[<p>On large strings that need to be formatted according to some length specifications, php provide some function as use<br />
1. wordwrap()<br />
wordwrap — Wraps a string to a given number of characters<br />
string wordwrap ( string $str [, int $width [, string $break [, bool $cut]]] )<br />
<strong>str</strong><br />
The input string.<br />
<strong>width</strong><br />
The column width. Defaults to 75.<br />
<strong>break</strong><br />
The line is broken using the optional break parameter. Defaults to &#8216;\n&#8217;.<br />
<strong>cut</strong><br />
If the cut is set to TRUE, the string is always wrapped at the specified width. So if you have a word that is larger than the given width, it is broken apart. (See second example).<br />
<span id="more-174"></span><br />
<?php<br />
$text = "The quick solution providers is a site under which we can get all kind of information related to php.";<br />
$newtext = wordwrap($text, 30, "<br />\n&#8221;);</p>
<p>echo $newtext;<br />
?><br />
optput:<br />
The quick solution providers<br />
is a site under which we can<br />
get all kind of information<br />
related to php</p>
<p>2.or chunk_split().<br />
chunk_split — Split a string into smaller chunks<br />
string chunk_split ( string $body [, int $chunklen [, string $end]] )<br />
<strong>body</strong><br />
The string to be chunked.<br />
<strong>chunklen</strong><br />
The chunk length. Defaults to 76.<br />
<strong>end</strong><br />
The line ending sequence. Defaults to &#8220;\r\n&#8221;. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/php/how-to-show-50-characters-per-line-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Assigning a variable the value of 0143, but its showing a different number</title>
		<link>http://www.quicksolutionproviders.com/php/assign-a-variable-the-value-of-0143-but-it-keeps-showing-different-number/</link>
		<comments>http://www.quicksolutionproviders.com/php/assign-a-variable-the-value-of-0143-but-it-keeps-showing-different-number/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 20:25:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Beginners]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Interpreter]]></category>
		<category><![CDATA[octal number]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=168</guid>
		<description><![CDATA[PHP Interpreter treats numbers beginning with 0 as octal. So that if you specify 0 before any number then php assume that you want to use this number as a octal number.
]]></description>
			<content:encoded><![CDATA[<p>PHP Interpreter treats numbers beginning with 0 as octal. So that if you specify 0 before any number then php assume that you want to use this number as a octal number.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/php/assign-a-variable-the-value-of-0143-but-it-keeps-showing-different-number/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What’s the difference between include and require?</title>
		<link>http://www.quicksolutionproviders.com/php/what%e2%80%99s-the-difference-between-include-and-require/</link>
		<comments>http://www.quicksolutionproviders.com/php/what%e2%80%99s-the-difference-between-include-and-require/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 20:18:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Beginners]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[execution]]></category>
		<category><![CDATA[warning]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/php/what%e2%80%99s-the-difference-between-include-and-require/</guid>
		<description><![CDATA[Difference is how they handle failures. If the file is not found by require(), it will cause a fatal error and halt the execution of the script. If the file is not found by include(), a warning will be issued, but execution will continue. 
]]></description>
			<content:encoded><![CDATA[<p>Difference is how they handle failures. If the file is not found by require(), it will cause a fatal error and halt the execution of the script. If the file is not found by include(), a warning will be issued, but execution will continue. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/php/what%e2%80%99s-the-difference-between-include-and-require/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tags in php</title>
		<link>http://www.quicksolutionproviders.com/php/tags-in-php/</link>
		<comments>http://www.quicksolutionproviders.com/php/tags-in-php/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 19:25:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Beginners]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[tag]]></category>
		<category><![CDATA[tags]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=117</guid>
		<description><![CDATA[PHP  tags
1.  XML style php tag(marker)   &#60;?php ?&#62;    (Default tag , work always)
2.   SGML php tag           &#60;?     ?&#62;     (it is also called short tag , depend you php setting in php_ini file)
3   ASP style tag       &#60;%     %&#62;   (Depents on php setting)
4.  Script style    &#60;script language=&#8221;php&#8221; &#62;echo &#8220;Hello&#8221;; &#60;/script&#62;
]]></description>
			<content:encoded><![CDATA[<p>PHP  tags<br />
1.  XML style php tag(marker)   &lt;?php ?&gt;    (Default tag , work always)<br />
2.   SGML php tag           &lt;?     ?&gt;     (it is also called short tag , depend you php setting in php_ini file)<br />
3   ASP style tag       &lt;%     %&gt;   (Depents on php setting)<br />
4.  Script style    &lt;script language=&#8221;php&#8221; &gt;echo &#8220;Hello&#8221;; &lt;/script&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/php/tags-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
