<?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:blogger='http://schemas.google.com/blogger/2008' 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-3535626552191053501</id><updated>2024-10-07T09:38:13.432+05:30</updated><title type='text'>Tutorial Desk</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://easynewsandfactz.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3535626552191053501/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://easynewsandfactz.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3535626552191053501.post-83461600346944139</id><published>2012-11-11T21:15:00.001+05:30</published><updated>2012-11-11T21:15:11.771+05:30</updated><title type='text'>PHP-Mysql Insert by Form</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #002060;&quot;&gt;Mysql Insert using form&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #002060;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
For creating dynamic pages it is so important to know how
data is inserted in mysql data base.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Example --&lt;span style=&quot;font-family: Wingdings; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Wingdings; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
// save as form.php or form.html&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;html&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;connection through form
action&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;body&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;form action=”insert.php” method=”POST”&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;//here we can use
method=”GET”&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
//GET is use for passing variables through address bar
whereas POST method doesn’t show&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
any pass in url or address bar.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
// form fields like input box and buttons etc...&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;input type=”text” id=”name” name=”name” /&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;input type=”text” id=”age” name=”age” /&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;/form&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;/body&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;/html&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;


&lt;div class=&quot;MsoNormal&quot;&gt;
// save as insert.php &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;?php&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
$host=”localhost”; // variable containing hostname&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
$username=”root”;&amp;nbsp;
//variable having username&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
$password=””;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
$dbname=”softfive”;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
$tablename=”data”; // data is the table name in softfive
database&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
mysql_connect(&quot;$host&quot;,&quot;$username&quot;,&quot;$password&quot;)
or die(&quot;Unable to connect&quot;); mysql_select_db(&quot;$dbname&quot;) or
die(&quot;Unable to select database&quot;);&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
$name=$_POST[‘name’];&amp;nbsp;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
$age=$_POST[‘age’];&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
// receiving variable value from form.php where ‘name’ is
the name of input field&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
$sql=INSERT INTO $tablename(Name,Age)
VALUES(‘$name’,’$age’);&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
$queryresult=mysql_query($sql);&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
//passing query to variable , you can do it without passing
like mysql_query($sql)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
if(!qureyresult) {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
echo “failed to insert please retry”;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
else&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
{&amp;nbsp; echo “inserted
sucessfull”;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
header(‘Location:form.php’);&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
?&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
// now upload the both files to server where PHP and mysql
installed and run form.php&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
// note: PHP is case sensitive so don’t use your own
words......&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3535626552191053501/posts/default/83461600346944139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3535626552191053501/posts/default/83461600346944139'/><link rel='alternate' type='text/html' href='http://easynewsandfactz.blogspot.com/2012/11/php-mysql-insert-by-form.html' title='PHP-Mysql Insert by Form'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3535626552191053501.post-5125114115067441677</id><published>2012-11-11T21:12:00.004+05:30</published><updated>2012-11-11T21:12:28.749+05:30</updated><title type='text'>PHP Database Connection</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
MySql DB connection&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Now I am going to tell You how to stabilise a connection
with DB.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Syntax:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial;&quot;&gt;mysql_connect(nameofserver,username,password);&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Exapmle&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
mysql_connect(“localhost”,”root”,””) or die (“not connected”);&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
// localhost is use for local server&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
You can do it by other way also&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
$myhost=”localhost”;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
$username=”root”;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
$password=””;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
mysql_connect($host,$username,$password) or die (“not
connected”);&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
NOW , How to connect with database&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Syntax:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
First stabilise &amp;nbsp;the
connection with server&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
mysql_connect(“localhost”,”root”,””) or die (“not connected”);&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
mysql_select_db(“myDb”) or die(“db not connected”);&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;


&lt;div class=&quot;MsoNormal&quot;&gt;
Example:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
// save as conn.php&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
mysql_connect(“localhost”,”root”,””) or die (“not connected”);&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
mysql_select_db(“myDb”) or die(“db not connected”);&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
echo “I hv got connected”;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3535626552191053501/posts/default/5125114115067441677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3535626552191053501/posts/default/5125114115067441677'/><link rel='alternate' type='text/html' href='http://easynewsandfactz.blogspot.com/2012/11/php-database-connection.html' title='PHP Database Connection'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3535626552191053501.post-8227621620592697257</id><published>2012-11-11T21:11:00.001+05:30</published><updated>2012-11-11T21:11:04.169+05:30</updated><title type='text'>PHP Post Method</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
POST:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
‘POST’ is used for the value sending . the values sent that
aren’t&amp;nbsp; appears in url bar.Generally used
for login and security.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Here I am going to give an example try it.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
// save the below given as “test.php”&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0
Transitional//EN&quot;
&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;head&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;meta http-equiv=&quot;Content-Type&quot;
content=&quot;text/html; charset=utf-8&quot; /&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;title&amp;gt;my post method&amp;lt;/title&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;/head&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;body&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;form action=&quot;action.php&quot;
method=&quot;post&quot; name=&quot;passing value by post&quot;&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;label&amp;gt;Enter Name&amp;lt;/label&amp;gt;&amp;amp;nbsp; :&amp;lt;input
name=&quot;name&quot; type=&quot;text&quot; /&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;br /&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;label&amp;gt; Enter Age&amp;lt;/label&amp;gt;&amp;amp;nbsp; :&amp;lt;input
name=&quot;age&quot; type=&quot;text&quot; /&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;br /&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;input type=&quot;submit&quot; value=&quot;Submit&quot;
/&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;/form&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;/body&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;/html&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;


&lt;div class=&quot;MsoNormal&quot;&gt;
// save the below given as action.php&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;?php&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
$var1=$_POST[&#39;name&#39;];&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
$var2=$_POST[&#39;age&#39;];&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
echo &quot;welcome&quot;.$var1.&quot;&amp;amp;nbsp; your age is
&quot;.$var2;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
?&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Now copy these two files to your php server and run
“test.php” in browser&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3535626552191053501/posts/default/8227621620592697257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3535626552191053501/posts/default/8227621620592697257'/><link rel='alternate' type='text/html' href='http://easynewsandfactz.blogspot.com/2012/11/php-post-method.html' title='PHP Post Method'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3535626552191053501.post-7399206782776363923</id><published>2012-11-08T21:14:00.000+05:30</published><updated>2012-11-08T21:14:06.441+05:30</updated><title type='text'>PHP Get Method</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
GET&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
‘GET’ is used for the value sending . the values sent that
are appears in url bar.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Here I am going to give an example try it.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
// save the below given as “test.php”&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;head&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;meta http-equiv=&quot;Content-Type&quot;
content=&quot;text/html; charset=utf-8&quot; /&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;title&amp;gt;my Get method&amp;lt;/title&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;/head&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;body&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;form action=&quot;action.php&quot;
method=&quot;get&quot; name=&quot;passing value by get&quot;&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;label&amp;gt;Enter Name&amp;lt;/label&amp;gt;&amp;amp;nbsp; :&amp;lt;input
name=&quot;name&quot; type=&quot;text&quot; /&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;br /&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;label&amp;gt; Enter Age&amp;lt;/label&amp;gt;&amp;amp;nbsp; :&amp;lt;input
name=&quot;age&quot; type=&quot;text&quot; /&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;br /&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;input type=&quot;submit&quot; value=&quot;Submit&quot;
/&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;/form&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;/body&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;/html&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;


&lt;div class=&quot;MsoNormal&quot;&gt;
// save the below given as action.php&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;lt;?php&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
$var1=$_GET[&#39;name&#39;];&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
$var2=$_GET[&#39;age&#39;];&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
echo &quot;welcome&quot;.$var1.&quot;&amp;amp;nbsp; your age is
&quot;.$var2;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
?&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Now copy these two files to your php server and run
“test.php” in browser&lt;/div&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3535626552191053501/posts/default/7399206782776363923'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3535626552191053501/posts/default/7399206782776363923'/><link rel='alternate' type='text/html' href='http://easynewsandfactz.blogspot.com/2012/11/php-get-method.html' title='PHP Get Method'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3535626552191053501.post-4937056258053006198</id><published>2012-11-08T21:11:00.002+05:30</published><updated>2012-11-08T21:11:41.680+05:30</updated><title type='text'>PHP functions</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;u&gt;Functions&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
The beautiful of PHP is the functions of PHP. Come to the
types of functions ,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Types of PHP functions, we dividing here&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
1)User Defined functions&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
2)PHP In-built Functions.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a)
frequently used functions&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b)
less-frequently used functions&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
1)User Defined Functions&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 18.0pt;&quot;&gt;
&amp;nbsp;
You can defined your function according to your use&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 18.0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 18.0pt;&quot;&gt;
Syntax:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 18.0pt;&quot;&gt;
// without passing argument &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 18.0pt;&quot;&gt;
function&amp;nbsp; myfunction()&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 18.0pt;&quot;&gt;
{&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 18.0pt;&quot;&gt;
echo “hello , I am in function
without arguments”;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 18.0pt;&quot;&gt;
} &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 18.0pt;&quot;&gt;
myfunction();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // calling the function&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 18.0pt;&quot;&gt;
Outut :&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 18.0pt;&quot;&gt;
Hello , I am in function without
arguments&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 18.0pt;&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;


&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 18.0pt;&quot;&gt;
// function with argument passing&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 18.0pt;&quot;&gt;
function myfunction($var)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 18.0pt;&quot;&gt;
{&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 18.0pt;&quot;&gt;
return&amp;nbsp; “hello ”.$var. “ Welcome in function with
arguments“;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 18.0pt;&quot;&gt;
} &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 18.0pt;&quot;&gt;
myfunction(“softfive”);&amp;nbsp; // Calling &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 18.0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 18.0pt;&quot;&gt;
You can call by following
methods-&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-left: 54.0pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -36.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;i.&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;!--[endif]--&gt;myfunction(“softfive”);&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 54.0pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -36.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;ii.&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;!--[endif]--&gt;myfunction($var=”softfive”);&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin-left: 54.0pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -36.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;iii.&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;!--[endif]--&gt;myfunction($var); // pass the value of $var&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin-left: 54.0pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -36.0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin-left: 54.0pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -36.0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin-left: 54.0pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -36.0pt;&quot;&gt;
&lt;u style=&quot;text-indent: -36pt;&quot;&gt;2)PHP In-built Functions.&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin-left: 54.0pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -36.0pt;&quot;&gt;
&lt;u style=&quot;text-indent: -36pt;&quot;&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin-left: 54.0pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -36.0pt;&quot;&gt;

&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a)
frequently used functions&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b)
less-frequently used functions&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
a) frequently used functions&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
$var=”hello”;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
strtolower($var);&amp;nbsp; //
output “hello” (used for the lower case letters)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
strtoupper($var);&amp;nbsp; //
output “HELLO” (used for the upper case letters)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
md5($var);&amp;nbsp;&amp;nbsp; //&amp;nbsp; to find hash &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
md5_file($file);&amp;nbsp; //
to file the hash of content of a file&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
sha1($var);&amp;nbsp; // to
find sha &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
substr($var,0,3);&amp;nbsp;&amp;nbsp;
//output “hel”&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
strlen($var);&amp;nbsp;&amp;nbsp; //
calculates the length of a string&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
trim(“&amp;nbsp;&amp;nbsp;&amp;nbsp;
hello”);&amp;nbsp;&amp;nbsp; //&amp;nbsp; output “hello” (reduces white spaces)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
str_replace(“ “,”-“,”hello world”);&amp;nbsp;&amp;nbsp; // output “hello-world”&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
strcmp(“hello”,”hello”);&amp;nbsp;&amp;nbsp;
// returns true&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
ucwords($var);&amp;nbsp; //
output&amp;nbsp;&amp;nbsp; “Hello”&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
date(“Y-m-d”); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp; returns the date &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
date(“Y-m-d&amp;nbsp; H:i:s”); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // returns the timestamp&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
b)less-frequently used functions&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
print_r($array); // prints the array value (mostly used for
debugging purpose)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
strrev($var);&amp;nbsp;&amp;nbsp;
//&amp;nbsp; output “olleh”&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
print &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // to print &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
echo&amp;nbsp;&amp;nbsp;&amp;nbsp; // to print&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
require(//file path);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; // to include a file&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
require_once(//file path); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// to include a file once&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
include(//file path); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Note
include gives warning where as require gives error)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
there are so many function that are used lessely or rarely.&lt;/div&gt;
&lt;br /&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3535626552191053501/posts/default/4937056258053006198'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3535626552191053501/posts/default/4937056258053006198'/><link rel='alternate' type='text/html' href='http://easynewsandfactz.blogspot.com/2012/11/php-functions.html' title='PHP functions'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3535626552191053501.post-482283604843389925</id><published>2012-11-08T21:07:00.003+05:30</published><updated>2012-11-08T21:08:08.362+05:30</updated><title type='text'>PHP for-each and while Loops</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;u&gt;for-each loop&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Some of us have the question that why we use for-each when
we have already for loop.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
So that the answer is for-each loop is used for the array,
but how?&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Coming to the Syntax:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
foreach($arrayname as $value)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
{&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
// code for execution&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
EXAMPLE&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
$myname=array(“softfive”,”soft”)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
foreach($myname as $value)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
{&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
echo $value.” , “;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Output&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Softfive , soft&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;u&gt;WHILE Loops&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Now coming to the while loop, many of us used the while
loop. The syntax of while loop is same as other programming languages like
C,C#,etc.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Syntax:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
while(condition)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
{&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
// code for execution&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Note: In case of while when the condition is true then code
executed.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;u&gt;Do-While loop&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
When we are talking about while loop it is common to come
do-while loop.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Syntax:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
do{&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
// code for execution&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
}while(condition);&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
EXAMPLE&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
$a=1;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
while($a=5)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
{&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;++$a;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
echo $a.”&amp;lt;br /&amp;gt;”;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Output&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
2&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
3&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
4&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
5&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
6&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
IMPORTANT =&amp;gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Many of us have the confusion that what is the difference
between ‘while’ and ‘do-while’ loop &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
So the main difference is&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp;WHILE EXECUTED IF THE
CONDITION IS TRUE whereas DO WHILE EXECUTED AT LEAST ONE TIME IF THE CONDITION
IS FALSE.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
EXAMPLE of do-while&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
$a=1&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
do{&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
echo $a;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
}while($a=3);&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Output&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
1&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3535626552191053501/posts/default/482283604843389925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3535626552191053501/posts/default/482283604843389925'/><link rel='alternate' type='text/html' href='http://easynewsandfactz.blogspot.com/2012/11/php-for-each-and-while-loops.html' title='PHP for-each and while Loops'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3535626552191053501.post-6761143403536934097</id><published>2012-11-03T21:49:00.002+05:30</published><updated>2012-11-03T22:22:33.152+05:30</updated><title type='text'>PHP if-else and for loops</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;PHP Loops&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;Loops
having a great importance in any language.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #002060; line-height: 115%; text-indent: -18pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #002060; line-height: 115%; text-indent: -18pt;&quot;&gt;If-else loop:-&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 18.0pt;&quot;&gt;
&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;If-else loop used for the condition checking if
condition is true then if executed otherwise else executed&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot;&gt;
&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;Example shown below-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;// loop starts&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;If (condition)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;// loop ends&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot;&gt;
&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;// Example --&lt;/span&gt;&lt;span style=&quot;color: #002060; font-family: Wingdings; line-height: 115%;&quot;&gt;à&lt;/span&gt;&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt; loop1.php&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;html&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;body&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;?php&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $myname=”softfive”;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If($myname==”softfive”) {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo “welcome”.””.”$myname”;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo “In else”;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // note : you can use nested
loop&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ?&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/body&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/html&amp;gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;&amp;nbsp; 2) for
loop:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; syntax of for loop is&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp; &amp;nbsp;for(initialisation ;condition ; increment or decrement)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp; &amp;nbsp;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp; &amp;nbsp;// code to execute&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp; &amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp; Example of for loop --&lt;/span&gt;&lt;span style=&quot;font-family: Wingdings; line-height: 115%;&quot;&gt;à&lt;/span&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;loop2.php&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp; &amp;lt;html&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp; &amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp; &amp;lt;body&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp; &amp;lt;?php &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp; &amp;nbsp;$myname=”5”;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp; &amp;nbsp;for($i=0 ;$1&amp;lt;$myname ;$++) {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp; &amp;nbsp;echo “softfive”.”
”.”$i”;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp; &amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp; echo “for loop executed”;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;?&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;lt;/body&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;lt;/html&amp;gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3535626552191053501/posts/default/6761143403536934097'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3535626552191053501/posts/default/6761143403536934097'/><link rel='alternate' type='text/html' href='http://easynewsandfactz.blogspot.com/2012/11/php-if-else-and-for-loops.html' title='PHP if-else and for loops'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3535626552191053501.post-4940531157507938980</id><published>2012-11-03T21:44:00.003+05:30</published><updated>2012-11-03T22:26:01.560+05:30</updated><title type='text'>Variables and Operaters of PHP</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;PHP Variables&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;A PHP
variable starts with sign ‘$’ and variable name contains only&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp;( _&amp;nbsp; ,
a-z , A-Z , 0-9 ).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;(Note: PHP
is a case sensitive. ‘a’ and ‘A’ are different names and don’t use spaces in
variable name)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;Some
examples of variables are:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;$myname=”softfive”;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;$_myname=”softfive”;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;$1=”softfive”;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;lt;html&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;lt;body&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;lt;?php&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;$myname=”softfive”;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;echo “my
name is: “ ”.” ”$myname”;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;// “.” Is
used for concatenation two things&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;?&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;lt;/body&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;lt;/html&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;PHP Operators&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;Now the
question comes that what operators you will use in PHP&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;Array
operators:-&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 115%; text-indent: -18pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 115%; text-indent: -18pt;&quot;&gt;a==b&amp;nbsp;
// both have same values&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 115%; text-indent: -18pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 115%; text-indent: -18pt;&quot;&gt;a+b&amp;nbsp;
// union of a and b&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 115%; text-indent: -18pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 115%; text-indent: -18pt;&quot;&gt;a===b // checks the value types&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 115%; text-indent: -18pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 115%; text-indent: -18pt;&quot;&gt;a!=b&amp;nbsp;
or a&amp;lt;&amp;gt;b&amp;nbsp; // checks a is not
equal to b&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 115%; text-indent: -18pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 115%; text-indent: -18pt;&quot;&gt;a.b&amp;nbsp;&amp;nbsp;
// concatenation&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;Logical
operators:-&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 115%; text-indent: -18pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 115%; text-indent: -18pt;&quot;&gt;a &amp;amp;&amp;amp; b // AND operator&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 115%; text-indent: -18pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 115%; text-indent: -18pt;&quot;&gt;a || b // OR operator&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 115%; text-indent: -18pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 115%; text-indent: -18pt;&quot;&gt;!a&amp;nbsp;
// NOT operator&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;Arithmetic
operators:-&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 115%; text-indent: -18pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;1)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 115%; text-indent: -18pt;&quot;&gt;a + b&amp;nbsp;
// add&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 115%; text-indent: -18pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;2)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 115%; text-indent: -18pt;&quot;&gt;a – b&amp;nbsp;
//subtract&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 115%; text-indent: -18pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;3)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 115%; text-indent: -18pt;&quot;&gt;a * b&amp;nbsp;
//multiplication&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 115%; text-indent: -18pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;4)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 115%; text-indent: -18pt;&quot;&gt;a / b&amp;nbsp;
//division&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 115%; text-indent: -18pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;5)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 115%; text-indent: -18pt;&quot;&gt;–a //minus a&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;Assignment
operators:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-left: 27.75pt; mso-add-space: auto; mso-list: l0 level1 lfo4; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;1)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp;a=a+b &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 27.75pt; mso-add-space: auto; mso-list: l0 level1 lfo4; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;2)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;a=a-b&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 27.75pt; mso-add-space: auto; mso-list: l0 level1 lfo4; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;3)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;a=a*b&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 27.75pt; mso-add-space: auto; mso-list: l0 level1 lfo4; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;4)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;a=a/b&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 27.75pt; mso-add-space: auto; mso-list: l0 level1 lfo4; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;5)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;a=a%b&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin-left: 27.75pt; mso-add-space: auto; mso-list: l0 level1 lfo4; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;6)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;a=b&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 9.75pt;&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;Other operators:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-left: 27.75pt; mso-add-space: auto; mso-list: l4 level1 lfo5; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;1)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;++a // pre increment &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 27.75pt; mso-add-space: auto; mso-list: l4 level1 lfo5; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;2)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;a++ // post increment&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 27.75pt; mso-add-space: auto; mso-list: l4 level1 lfo5; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;3)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;- -a&amp;nbsp;
// pre decrement&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 27.75pt; mso-add-space: auto; mso-list: l4 level1 lfo5; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;4)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;a--&amp;nbsp;
//post decrement&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 27.75pt; mso-add-space: auto; mso-list: l4 level1 lfo5; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;5)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;a==b // comparison&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 27.75pt; mso-add-space: auto; mso-list: l4 level1 lfo5; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;6)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;a&amp;gt;b&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 27.75pt; mso-add-space: auto; mso-list: l4 level1 lfo5; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;7)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;a&amp;lt;b&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 27.75pt; mso-add-space: auto; mso-list: l4 level1 lfo5; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;8)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;a&amp;gt;=b&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 27.75pt; mso-add-space: auto; mso-list: l4 level1 lfo5; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;9)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;a&amp;lt;=b&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin-left: 27.75pt; mso-add-space: auto; mso-list: l4 level1 lfo5; text-indent: -18.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;10)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;a!=b&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3535626552191053501/posts/default/4940531157507938980'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3535626552191053501/posts/default/4940531157507938980'/><link rel='alternate' type='text/html' href='http://easynewsandfactz.blogspot.com/2012/11/variables-and-operaters-of-php.html' title='Variables and Operaters of PHP'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3535626552191053501.post-2173989060010629031</id><published>2012-11-03T21:37:00.003+05:30</published><updated>2012-11-03T21:40:06.167+05:30</updated><title type='text'>Basics of PHP</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
PHP Basics&lt;br /&gt;
&lt;br /&gt;
Before starting PHP you should know about HTML ,scripting and the basics of PHP.&lt;br /&gt;
Example of PHP application is www.facebook.com .&lt;br /&gt;
&lt;br /&gt;
Now coming to topic,&lt;br /&gt;
&lt;br /&gt;
The first question arises in your mind what is PHP and PHP stands for What?&lt;br /&gt;
The  answer  is PHP HYPERTEXT  PREPROCESSOR .&lt;br /&gt;
&lt;br /&gt;
PHP is server side scripting language i.e. you need a server to run the PHP code.&lt;br /&gt;
&lt;br /&gt;
Now the questions comes to extension of PHP,&lt;br /&gt;
The extension of PHP are .phtml , .php , .php3.&lt;br /&gt;
You can use any of above three for PHP.&lt;br /&gt;
&lt;br /&gt;
When you are concerning with web application then you should aware with the presentation of web pages that uses HTML for the presentation.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;In next section we will learn loops uses in PHP.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: #002060; line-height: 115%;&quot;&gt;PHP Syntax&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;As we know
PHP is a scripting language and all the scripting language start with a tag.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;PHP start
with a tag&amp;nbsp;&amp;nbsp; &amp;lt;?php&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .....code........&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ?&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;(Note: don’t
gap between &lt;u&gt;&amp;lt;?&lt;/u&gt; And &lt;u&gt;php&lt;/u&gt; it will be error)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;The
following example clears all the queries about syntax:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-left: 54.0pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -36.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;i)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;In
PHP format-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 54.0pt; mso-add-space: auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 54.0pt; mso-add-space: auto;&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;lt;?php&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 54.0pt; mso-add-space: auto;&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;echo “Hi this is my first
PHP code”;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 54.0pt; mso-add-space: auto;&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;//”echo” is user for
print&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 54.0pt; mso-add-space: auto;&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;// you can also use
“print” &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin-left: 54.0pt; mso-add-space: auto;&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;?&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //save file
as “a.php”.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-left: 54.0pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -36.0pt;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;ii)&lt;span style=&quot;line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;In
HTML context&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 54.0pt; mso-add-space: auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 54.0pt; mso-add-space: auto;&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;lt;html&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 54.0pt; mso-add-space: auto;&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 54.0pt; mso-add-space: auto;&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;lt;body&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 54.0pt; mso-add-space: auto;&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;lt;?php&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 54.0pt; mso-add-space: auto;&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;Echo “welcome in PHP
&amp;lt;/br&amp;gt;”;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 54.0pt; mso-add-space: auto;&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;echo “This is my first
PHP code”;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 54.0pt; mso-add-space: auto;&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;?&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 54.0pt; mso-add-space: auto;&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;lt;/body&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 54.0pt; mso-add-space: auto;&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;lt;/html&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 54.0pt; mso-add-space: auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin-left: 54.0pt; mso-add-space: auto;&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;//save as&amp;nbsp; “name.php”.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3535626552191053501/posts/default/2173989060010629031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3535626552191053501/posts/default/2173989060010629031'/><link rel='alternate' type='text/html' href='http://easynewsandfactz.blogspot.com/2012/11/php-basics-before-starting-php-you.html' title='Basics of PHP'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3535626552191053501.post-2533405497338897553</id><published>2012-11-03T21:18:00.003+05:30</published><updated>2012-11-03T21:31:04.047+05:30</updated><title type='text'>Placement Papers</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Placement papers (Free Download Here)&lt;br /&gt;
&lt;br /&gt;
IBM Papers&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://hotfile.com/dl/148616799/98965d1/ibm1.txt.html&quot;&gt;sample 1&lt;/a&gt;&amp;nbsp;&lt;a href=&quot;http://hotfile.com/dl/148616799/98965d1/ibm1.txt.html&quot;&gt;sample 2&lt;/a&gt;&amp;nbsp;&lt;a href=&quot;http://hotfile.com/dl/148616799/98965d1/ibm1.txt.html&quot;&gt;sample 3&lt;/a&gt;&amp;nbsp;&lt;a href=&quot;http://hotfile.com/dl/148616799/98965d1/ibm1.txt.html&quot;&gt;sample 4&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
INFOSYS Papers&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://hotfile.com/dl/148617109/7629eb0/info_1.txt.html&quot;&gt;sample 1&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href=&quot;http://hotfile.com/dl/148617109/7629eb0/info_2.txt.html&quot;&gt;sample 2&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href=&quot;http://hotfile.com/dl/148617109/7629eb0/info_3.txt.html&quot;&gt;sample 3&lt;/a&gt;&amp;nbsp;&lt;a href=&quot;http://hotfile.com/dl/148617109/7629eb0/info_4.txt.html&quot;&gt;sample 4&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Note: there are mainly two rounds in Infosys first is aptitude and second is HR . Aptitude round contains two section English and quantative &amp;amp;amp; reasoning. If &amp;nbsp;you are not qualify in English section then your quantative section will not consider.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;TCS Papers&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://hotfile.com/dl/148619489/312c863/tcs_paper_2010.txt.html&quot;&gt;sample 1&lt;/a&gt;&amp;nbsp;&lt;a href=&quot;http://hotfile.com/dl/148619944/fe8a4a4/tcs1.txt.html&quot;&gt;sample 2&lt;/a&gt;&amp;nbsp;&lt;a href=&quot;http://hotfile.com/dl/148619944/fe8a4a4/tcs2.txt.html&quot;&gt;sample 3&lt;/a&gt;&amp;nbsp;&lt;a href=&quot;http://hotfile.com/dl/148619944/fe8a4a4/tcs3.txt.html&quot;&gt;sample 4&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Note: there are mainly three rounds in TCS first is aptitude ,second is TECHNICAL and third one is HR . Aptitude round contains two section English and quantative &amp;amp;amp; reasoning. If &amp;nbsp;you have aggregate 75 % or more in your BE/BTECH/MCA then you will directly consider for TECHNICAL.&lt;br /&gt;
&lt;br /&gt;
ALL THE BEST !!!!&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3535626552191053501/posts/default/2533405497338897553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3535626552191053501/posts/default/2533405497338897553'/><link rel='alternate' type='text/html' href='http://easynewsandfactz.blogspot.com/2012/11/placement-papers-free-download-here-ibm.html' title='Placement Papers'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3535626552191053501.post-8127532781558231834</id><published>2012-11-03T21:01:00.002+05:30</published><updated>2012-11-03T21:39:49.647+05:30</updated><title type='text'>e-litmus Pattern and Sample</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Syllabus and questions of elitmus pvt Ltd&lt;/div&gt;
&lt;br /&gt;
There are three section each section of 200 marks.&lt;br /&gt;
SECTION A-QUANTITATIVE&lt;br /&gt;
SECTION B-REASONING&lt;br /&gt;
SECTION C-VERBAL&lt;br /&gt;
QUANTATIVE (20 QUESTIONS)&lt;br /&gt;
In this section the questions like&lt;br /&gt;
1) 101+102+............. find the max sum upto temrs 99&lt;br /&gt;
&lt;br /&gt;
2) can be  answer by &lt;br /&gt;
If n2-n-6 =0 ,n=positive&lt;br /&gt;
a)n=-2&lt;br /&gt;
b)n=3&lt;br /&gt;
c)both&lt;br /&gt;
&lt;br /&gt;
3) In year 2011 there are several student given the e-litmus .  out of them 98 percentile student got interview call and those of them 75 % accepted their call . out of them 80%  go for interview and the ratio of selection and rejection is 1:4 if there are 100 student are selected then find out the no of students appeared in e-litmus exam..(MUST)&lt;br /&gt;
&lt;br /&gt;
4) If there is a cubical tank and there are 10 pipes that will used to fill and empty the tank.&lt;br /&gt;
If 6 pipes fill the tank in 4 hours and 7 pipes empty the tank in 2 hours. then find 9 pipes fill the tank in how much time if 3 pipes are open...&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;5) three questions based on following(MUST)&lt;br /&gt;
S G H J&lt;br /&gt;
G T J  X&lt;br /&gt;
I U D  X&lt;br /&gt;
R D K U&lt;br /&gt;
a) The value of D id&lt;br /&gt;
b) Reminder when g is dived by 2&lt;br /&gt;
c) Values which are lies  between U and S.&lt;br /&gt;
&lt;br /&gt;
6) Percentage qnd profit loss based questions&lt;br /&gt;
&lt;br /&gt;
7) Questions based on number system..&lt;br /&gt;
&lt;br /&gt;
8) Permutations and combinations.(MUST)&lt;br /&gt;
So go with a good preparation......&lt;br /&gt;
&lt;br /&gt;
REASONING (20 QUESTIONS)&lt;br /&gt;
1)DI- tabular data with conditions 5 question&lt;br /&gt;
2) Arrangement ( visiting 3 villages each day, 5 villages... with lots of conditions) 3 questions&lt;br /&gt;
3)Coding/Decoding based on multiplication&lt;br /&gt;
&lt;br /&gt;
VERBAL  (20 QUESTIONS)&lt;br /&gt;
1)3 RC 4 question in each&lt;br /&gt;
2)paragraph formation&lt;br /&gt;
3)fill in the blank ( appropriate word)&lt;br /&gt;
4)grammar&lt;br /&gt;
&lt;br /&gt;
GO WITH A GOOD PREPARATION....BEST OF LUCK&lt;br /&gt;
&lt;br /&gt;
Download this in .doc file&lt;br /&gt;
&lt;a href=&quot;http://hotfile.com/dl/147758886/695e1b8/ELITMUS_PVT_LTD.docx.html&quot;&gt;click here &lt;/a&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3535626552191053501/posts/default/8127532781558231834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3535626552191053501/posts/default/8127532781558231834'/><link rel='alternate' type='text/html' href='http://easynewsandfactz.blogspot.com/2012/11/e-litmus-pattern-and-sample.html' title='e-litmus Pattern and Sample'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3535626552191053501.post-181435485169169506</id><published>2012-11-03T20:58:00.001+05:30</published><updated>2012-11-03T21:15:01.756+05:30</updated><title type='text'>Amcat Pattern and Sample</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Overview (for CSE/IT/MCA) :&lt;/div&gt;
&lt;br /&gt;
There are mainly five sections in AMCAT, these are VERBAL, QUANTATIVE, TECHNICAL (Programing output basis) , PERSONALITY, C++/JAVA/SQL. NO NEGATIVE MARKING&lt;br /&gt;
&lt;br /&gt;
I)Verbal&lt;br /&gt;
In verbal section there are no fix number of questions these are approx 20-25 questions.&lt;br /&gt;
&lt;br /&gt;
II)Quantative&lt;br /&gt;
In this section no fix questions its lies between 20-40 questions.&lt;br /&gt;
&lt;br /&gt;
III)Technical&lt;br /&gt;
This section also having no fix questions lies between 20-35 programing code basis.&lt;br /&gt;
&lt;br /&gt;
IV)Personality&lt;br /&gt;
This section is looking lengthy but its easy and no need to prepare questions are more than 60.&lt;br /&gt;
E.g.- U like to spread jokes between your friends-&lt;br /&gt;
a) very incorrect b)some incorrect c)mostly correct d)very correct.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
V)Language(C++/JAVA/SQL)&lt;br /&gt;
This section having no fix number of questions and questions are from your selection module mostly conceptual questions are there.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE: After your test there is a sheet provided to you for your telephonic interview this is machine based.&lt;br /&gt;
&lt;br /&gt;
Register Here for &lt;a href=&quot;http://myamcat.com/&quot;&gt;My Amcat&lt;/a&gt;&lt;br /&gt;
Download Sample paper in .doc file&lt;br /&gt;
&lt;a href=&quot;http://hotfile.com/dl/148734111/ef36631/QUANTITATIVE_ABILITY.docx.html&quot;&gt;Quantative section&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://hotfile.com/dl/148734256/e1a998d/ENGLISH_COMPREHENSION.docx.html&quot;&gt;English Comprehension&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://hotfile.com/dl/148734274/8aaa4dd/LOGICAL_ABILITY.docx.html&quot;&gt;Logical Reasoning&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://hotfile.com/dl/148734372/b374057/COMPUTER_PROGRAMMING_PRINCIPLES_AND_APPLICATIONS.docx.html&quot;&gt;Computer Programing&lt;/a&gt;&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
ALL THE BEST !!!!
&amp;nbsp;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3535626552191053501/posts/default/181435485169169506'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3535626552191053501/posts/default/181435485169169506'/><link rel='alternate' type='text/html' href='http://easynewsandfactz.blogspot.com/2012/11/amcat-pattern-and-sample.html' title='Amcat Pattern and Sample'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>