<?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-6063280890491329850</id><updated>2024-10-25T01:41:36.425-07:00</updated><title type='text'>PHP Programming</title><subtitle type='html'>PHP software, php web</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://getphpcode.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6063280890491329850/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://getphpcode.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>valeri</name><uri>http://www.blogger.com/profile/04730403378054499278</uri><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>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6063280890491329850.post-6267685628874901025</id><published>2009-12-10T12:59:00.001-08:00</published><updated>2009-12-12T13:19:41.476-08:00</updated><title type='text'>php - echo</title><content type='html'>&lt;br /&gt;For output a text, variables, html tags and etc. is used  function PHP &lt;b&gt;echo&lt;/b&gt;     &lt;br /&gt; &lt;br /&gt;
PHP &lt;b&gt;echo&lt;/b&gt; function will output the text inside it.               &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Example 1: &lt;/b&gt;&lt;/i&gt;output variable&lt;br /&gt;
&lt;table style=&quot;color:#000000;border:1px solid #dddddd;padding:5px;background-color:#e5eeaa;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt;&lt;tr&gt;&lt;td&gt;&lt;font color=&quot;red&quot;&gt;&amp;lt;?php&lt;/font&gt;&lt;br /&gt;
$country = &amp;quot;Canada&amp;quot;;        &lt;br /&gt;
&lt;b&gt;echo&lt;/b&gt; $country;&lt;br /&gt;
&lt;font color=&quot;red&quot;&gt;?&amp;gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;Result:&lt;br /&gt;
&lt;table style=&quot;color:#000000;border:1px solid #dddddd;padding:5px;background-color:#e5eeaa;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt;&lt;tr&gt;&lt;td&gt;      Canada&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Example 2: &lt;/b&gt;&lt;/i&gt;output text  &lt;br /&gt;
&lt;table style=&quot;color:#000000;border:1px solid #dddddd;padding:5px;background-color:#e5eeaa;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt;&lt;tr&gt;&lt;td&gt;&lt;font color=&quot;red&quot;&gt;&amp;lt;?php&lt;/font&gt;&lt;br /&gt;
&lt;b&gt;echo&lt;/b&gt; &amp;quot;Country&amp;quot;;&lt;br /&gt;
&lt;font color=&quot;red&quot;&gt;?&amp;gt;&lt;/font&gt; &lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;Result:&lt;br /&gt;
&lt;table style=&quot;color:#000000;border:1px solid #dddddd;padding:5px;background-color:#e5eeaa;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt;&lt;tr&gt;&lt;td&gt;Country &lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;br /&gt;
      &lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Example 3: &lt;/b&gt;&lt;/i&gt;output text with variable     &lt;br /&gt;
&lt;table style=&quot;color:#000000;border:1px solid #dddddd;padding:5px;background-color:#e5eeaa;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt;&lt;tr&gt;&lt;td&gt; &lt;font color=&quot;red&quot;&gt;&amp;lt;?php&lt;/font&gt;&lt;br /&gt;
$my_name = &lt;font color=&quot;green&quot;&gt;&amp;quot;Valeri&amp;quot;&lt;/font&gt;;&lt;br /&gt;
$my_country = &lt;font color=&quot;green&quot;&gt;&amp;quot;Georgia&amp;quot;&lt;/font&gt;;&lt;br /&gt;
&lt;b&gt;echo&lt;/b&gt; &lt;font color=&quot;green&quot;&gt;&amp;quot;My name is&amp;quot;&lt;/font&gt;  . $my_name . &lt;font color=&quot;green&quot;&gt;&amp;quot; and I am from &amp;quot;&lt;/font&gt; . $my_country;&lt;br /&gt;
&lt;font color=&quot;red&quot;&gt;?&amp;gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;Result:&lt;table style=&quot;color:#000000;border:1px solid #dddddd;padding:5px;background-color:#e5eeaa;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt;&lt;tr&gt;&lt;td&gt;My name is Valeri and I am from Georgia &lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;br /&gt;
      &lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Example 4: &lt;/b&gt;&lt;/i&gt;output text with variables and with html tags &lt;br /&gt;
&lt;table style=&quot;color:#000000;border:1px solid #dddddd;padding:5px;background-color:#e5eeaa;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt;&lt;tr&gt;&lt;td&gt;&lt;font color=&quot;red&quot;&gt;&amp;lt;?php&lt;/font&gt;&lt;br /&gt;
$my_name = &lt;font color=&quot;green&quot;&gt;&amp;quot;Valeri&amp;quot;&lt;/font&gt;;&lt;br /&gt;
$my_country = &lt;font color=&quot;green&quot;&gt;&amp;quot;Georgia&amp;quot;&lt;/font&gt;;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;echo&lt;/b&gt; &lt;font color=&quot;green&quot;&gt;&amp;quot;My name is&amp;nb&lt;font color=&quot;green&quot;&gt;sp;&lt;/font&gt;&amp;lt;b&amp;gt;&amp;quot;&lt;/font&gt;  . $my_name . &lt;font color=&quot;green&quot;&gt;&amp;quot;&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&amp;nb&lt;font color=&quot;green&quot;&gt;sp;&lt;/font&gt;&amp;nb&lt;font color=&quot;green&quot;&gt;sp;&lt;/font&gt;&amp;nb&lt;font color=&quot;green&quot;&gt;sp;&lt;/font&gt;and &amp;lt;br&amp;gt;I am from&amp;nb&lt;font color=&quot;green&quot;&gt;sp;&amp;lt;b&amp;gt;&lt;/font&gt;&amp;quot;&lt;/font&gt; . $my_country . &lt;font color=&quot;green&quot;&gt;&amp;quot;&amp;lt;/b&amp;gt;&amp;quot;&lt;/font&gt;;&lt;br /&gt;
&lt;font color=&quot;red&quot;&gt;?&amp;gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;Result:&lt;table style=&quot;color:#000000;border:1px solid #dddddd;padding:5px;background-color:#e5eeaa;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt;&lt;tr&gt;&lt;td&gt;My name is &lt;b&gt;Valeri&lt;/b&gt; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;and &lt;br&gt;I am from &lt;b&gt;Georgia&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</content><link rel='replies' type='application/atom+xml' href='http://getphpcode.blogspot.com/feeds/6267685628874901025/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://getphpcode.blogspot.com/2009/12/php-echo_7342.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6063280890491329850/posts/default/6267685628874901025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6063280890491329850/posts/default/6267685628874901025'/><link rel='alternate' type='text/html' href='http://getphpcode.blogspot.com/2009/12/php-echo_7342.html' title='php - echo'/><author><name>valeri</name><uri>http://www.blogger.com/profile/04730403378054499278</uri><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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6063280890491329850.post-1642182650906972329</id><published>2009-12-06T07:49:00.000-08:00</published><updated>2009-12-10T09:52:29.376-08:00</updated><title type='text'>php - variable</title><content type='html'>&lt;br /&gt;For storing different types of values, we can use variables&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;variables in PHP start with this $ dollar symbol.&lt;br /&gt;
&lt;li&gt;Name of a variable in php must start with a letter or with this _ symbol.&lt;br /&gt;
&lt;li&gt;Name of a variable in php must contain only alpha-numeric characters and underscores(abc...z, ABC...Z, 012...9, _)&lt;br /&gt;
&lt;li&gt;Name of a variable in php should not contain spaces, it will be mistake. if your variable contains more then one word, you can use separator($my_name)&lt;br /&gt;
&lt;li&gt;A variable does not need to declare value type, Php will automatically converts this variable to the correct data type.&lt;br /&gt;
&lt;/ul&gt;&lt;b&gt;declare text string type variable:&lt;/b&gt;&lt;br&gt;$variable_name = &amp;quot;Myname&amp;quot;;&lt;br&gt; &lt;br&gt;    &lt;b&gt;declare text string type variable:&lt;/b&gt;     &lt;br&gt;
$variable_name = 5;&lt;br&gt;&lt;br&gt;
            
after decleration a variable, you can use each time you want in your script
variables in php
      
&lt;br /&gt;
                          
&lt;table style=&quot;color:#000000;border:1px solid #dddddd;padding:5px;background-color:#e5eeaa;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt;&lt;tr&gt;&lt;td&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;      &lt;br /&gt;
&amp;lt;?php&lt;br /&gt;&lt;br /&gt;
$country = &amp;quot;Canada&amp;quot; &lt;br /&gt;
echo $country;&lt;br /&gt;&lt;br /&gt;
?&amp;gt;&lt;br /&gt;                                &lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;           &lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt;
The result is :    
&lt;table style=&quot;color:#000000;border:1px solid #d4d4d4;padding:5px;background-color:#e5eecc;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt;&lt;tr&gt;&lt;td&gt;Canada&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;br /&gt;
&lt;b&gt;echo&lt;/b&gt; print the value of the $country variable.</content><link rel='replies' type='application/atom+xml' href='http://getphpcode.blogspot.com/feeds/1642182650906972329/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://getphpcode.blogspot.com/2009/12/php-variable.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6063280890491329850/posts/default/1642182650906972329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6063280890491329850/posts/default/1642182650906972329'/><link rel='alternate' type='text/html' href='http://getphpcode.blogspot.com/2009/12/php-variable.html' title='php - variable'/><author><name>valeri</name><uri>http://www.blogger.com/profile/04730403378054499278</uri><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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6063280890491329850.post-4208620621048359464</id><published>2009-12-06T05:35:00.001-08:00</published><updated>2009-12-06T05:45:13.221-08:00</updated><title type='text'>php - comment</title><content type='html'>you have two way to comment in php&lt;br /&gt;
&lt;br /&gt;
&lt;table style=&quot;color:#000000;border:1px solid #d4d4d4;padding:5px;background-color:#e5eecc;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt;&lt;tr&gt;&lt;td&gt;&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
//this is a comment only on the one line&lt;br /&gt;
&lt;br /&gt;
/* &lt;br /&gt;
this is a comment block  &lt;br /&gt;
by this way you can write comment and your script on the one line, &lt;br /&gt;
also each line you want&lt;br /&gt;
*/ &lt;br /&gt;
&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</content><link rel='replies' type='application/atom+xml' href='http://getphpcode.blogspot.com/feeds/4208620621048359464/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://getphpcode.blogspot.com/2009/12/php-comment.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6063280890491329850/posts/default/4208620621048359464'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6063280890491329850/posts/default/4208620621048359464'/><link rel='alternate' type='text/html' href='http://getphpcode.blogspot.com/2009/12/php-comment.html' title='php - comment'/><author><name>valeri</name><uri>http://www.blogger.com/profile/04730403378054499278</uri><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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6063280890491329850.post-7302451465510755283</id><published>2009-12-06T04:29:00.000-08:00</published><updated>2009-12-06T05:52:21.215-08:00</updated><title type='text'>php - My first program</title><content type='html'>&lt;table style=&quot;color:#000000;border:1px solid #d4d4d4;padding:5px;background-color:#e5eecc;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt;&lt;tr&gt;&lt;td&gt;&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
echo &amp;quot;Hello World&amp;quot;;&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</content><link rel='replies' type='application/atom+xml' href='http://getphpcode.blogspot.com/feeds/7302451465510755283/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://getphpcode.blogspot.com/2009/12/bvbvbvbvbvbvb.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6063280890491329850/posts/default/7302451465510755283'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6063280890491329850/posts/default/7302451465510755283'/><link rel='alternate' type='text/html' href='http://getphpcode.blogspot.com/2009/12/bvbvbvbvbvbvb.html' title='php - My first program'/><author><name>valeri</name><uri>http://www.blogger.com/profile/04730403378054499278</uri><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><thr:total>0</thr:total></entry></feed>