<?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-6718486438098258521</id><updated>2024-08-28T03:40:44.828-07:00</updated><title type='text'>Learn &amp;amp; Earn by  PHP&amp;amp; MYSQL</title><subtitle type='html'>                                                                                                                                   &lt;a href=&quot;http://www.incentria.com/index.php?ref=amranrazu&quot;&gt;&#xa;&lt;img src=&quot;http://www.incentria.com/my_banner.php?u=amranrazu&quot; alt=&quot;Incentria&quot;&gt;&lt;/a&gt;</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://php-mysql-shiko.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718486438098258521/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://php-mysql-shiko.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Amran Razu</name><uri>http://www.blogger.com/profile/18163403111378027087</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>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6718486438098258521.post-5134361430899975198</id><published>2011-06-20T04:59:00.000-07:00</published><updated>2011-06-20T05:00:49.838-07:00</updated><title type='text'>how to start php : step by step.</title><content type='html'>============================================&lt;br /&gt;Before we can do the big fancy stuff we must first learn the basics from which we build on.&lt;br /&gt;Start by creating a blank file using any program that can save in plain text format.&lt;br /&gt;==&amp;gt;open note pad&lt;br /&gt;==&amp;gt;Save as .php file for example testpage.php&lt;br /&gt;==&amp;gt;enter the following code :&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;==&amp;gt; here &quot; echo&quot;Bismillah&quot; indicates print the word &quot;Bismillah&quot;&lt;br /&gt;==&amp;gt;&quot;?&amp;gt;&quot; indicates end point of php tags.&lt;br /&gt;Comments in PHP&lt;br /&gt;&lt;br /&gt;In PHP, we use // to make a single-line comment or /* and */ to make a large comment block.&lt;br /&gt;&lt;br /&gt;for example:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//This is a comment&lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt;This is&lt;br /&gt;a comment&lt;br /&gt;block&lt;br /&gt;*/&lt;br /&gt;?&amp;gt;&lt;br /&gt;One reason you may want to put a comment in your code is to make a note to yourself about what the code is doing for reference when you edit it later. You may also want to put comments in your code if you plan on sharing it with others and want them to understand what it does, or to include your name and terms of use within the script.</content><link rel='replies' type='application/atom+xml' href='http://php-mysql-shiko.blogspot.com/feeds/5134361430899975198/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://php-mysql-shiko.blogspot.com/2011/06/how-to-start-php-step-by-step.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718486438098258521/posts/default/5134361430899975198'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718486438098258521/posts/default/5134361430899975198'/><link rel='alternate' type='text/html' href='http://php-mysql-shiko.blogspot.com/2011/06/how-to-start-php-step-by-step.html' title='how to start php : step by step.'/><author><name>Amran Razu</name><uri>http://www.blogger.com/profile/18163403111378027087</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-6718486438098258521.post-3412112951292482395</id><published>2011-06-20T03:44:00.000-07:00</published><updated>2011-06-21T05:05:56.034-07:00</updated><title type='text'>how to install</title><content type='html'>If your server supports PHP you don&#39;t need to do anything.&lt;br /&gt;&lt;br /&gt;Just create some .php files in your web directory, and the server will parse them for you. Because it is free, most web hosts offer PHP support.&lt;br /&gt;&lt;br /&gt;However, if your server does not support PHP, you must install PHP.&lt;br /&gt;Here is a link to a good tutorial from PHP.net on how to install PHP5: &lt;a href=&quot;http://www.php.net/manual/en/install.php&quot;&gt;http://www.php.net/manual/en/install.php&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Download PHP&lt;/h2&gt;&lt;p&gt;Download PHP for free here: &lt;a target=&quot;_blank&quot; href=&quot;http://www.php.net/downloads.php&quot;&gt;http://www.php.net/downloads.php&lt;/a&gt;&lt;/p&gt;&lt;h2&gt;Download MySQL Database&lt;/h2&gt;&lt;p&gt;Download MySQL for free here: &lt;a target=&quot;_blank&quot; href=&quot;http://www.mysql.com/downloads/&quot;&gt;http://www.mysql.com/downloads/&lt;/a&gt;&lt;/p&gt;&lt;h2&gt;Download Apache Server&lt;/h2&gt;&lt;p&gt;Download Apache for free here: &lt;a target=&quot;_blank&quot; href=&quot;http://httpd.apache.org/download.cgi&quot;&gt;http://httpd.apache.org/download.cgi&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Or you can Install wamp which contains whole php,apache,mysql So now we can say &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-family: trebuchet ms;&quot;&gt;Installing PHP is easy. You can install PHP on your computer easily with  WAMP5. WAMP5 is an open source application which comes with with PHP5,  Apache web server, MySQL database and phpMyAdmin (mysql database  administration program). You can install these items on your windows  machine using WAMP5. You can read more about WAMP5 at &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-family: trebuchet ms;&quot;&gt;www.wampserver.com&lt;/span&gt;.&lt;/p&gt;&lt;h5 id=&quot;s1.1&quot;&gt;Installing WAMP5&lt;/h5&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Download the latest version of &lt;a href=&quot;http://www.wampserver.com/en/download.php&quot; target=&quot;_blank&quot;&gt;WAMP5&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Run the installation wizard and follow the easy instructions to install WAMP5.&lt;/li&gt;&lt;li&gt;Once  you&#39;re done installing WAMP5, please go to your folder where you  installed wamp5. If you didn’t specify which folder to install wamp  during the installation wizard, then it should be installed in your C:/  drive, i.e. C:/wamp. &lt;/li&gt;&lt;li&gt;In your wamp directory you should see the following folders.&lt;/li&gt;&lt;ol type=&quot;a&quot;&gt;&lt;li&gt;&lt;b&gt;apache2&lt;/b&gt;  – This is where the apache web server is installed. Apache will run our  php code and scripts on the web browser. You will not need to do  anything in this folder. So you can relax and ignore it for now:) &lt;/li&gt;&lt;li&gt;&lt;b&gt;mysql&lt;/b&gt;  – This is where MySql databse is installed. MySQL is an open source  database. PHP and MySQL work really well together. You can use PHP and  MySql to store data. Don’t worry, we will learn how to do all that in  our tutorials.&lt;/li&gt;&lt;li&gt;&lt;b&gt;php&lt;/b&gt; – You guessed it. This is where php modules are stored.&lt;/li&gt;&lt;li&gt;&lt;b&gt;www&lt;/b&gt; – This is the root folder of our web server. This is where you are going to put all your php files and scripts.&lt;/li&gt;&lt;li&gt;&lt;b&gt;wampserver.exe&lt;/b&gt;  – This file will run the WAMP program. We need to start WAMP everytime  we want to work with PHP. So, go ahead and double click on this file.&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;Once you run the wamp server file, you will see a small icon on your windows tray.&lt;div align=&quot;center&quot;&gt;&lt;img title=&quot;&quot; src=&quot;http://www.php-learn-it.com/images/wamp_tray_icon.jpg&quot; alt=&quot;wamp tray icon&quot; /&gt;&lt;/div&gt;&lt;br /&gt;Right  click on this icon and then click on “Start All Services”. This will  start the apache web server along with everything we need to run PHP  pages on our machine. &lt;/li&gt;&lt;div align=&quot;center&quot;&gt;&lt;img title=&quot;&quot; src=&quot;http://www.php-learn-it.com/images/wamp_start.jpg&quot; alt=&quot;wamp start&quot; /&gt;&lt;/div&gt;&lt;br /&gt;That it! You’re almost done. &lt;li&gt;Now open up your web browser and type in &lt;a href=&quot;http://localhost/&quot;&gt;http://localhost&lt;/a&gt;. You should see the WAMP welcome page.&lt;/li&gt;&lt;div class=&quot;note&quot;&gt;When  you type in http://localhost in your browser, it executes the index.php  file in your www folder. All our php files will go in the www folder.  Follow the next tutorials to see how that is done.&lt;/div&gt;&lt;/ol&gt;&lt;br /&gt;&lt;p&gt;&lt;span style=&quot;font-weight: bold; color: rgb(255, 102, 0);font-size:180%;&quot; &gt;You have done&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://httpd.apache.org/download.cgi&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;color: rgb(204, 51, 204); font-weight: bold; font-family:arial;&quot; &gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-mysql-shiko.blogspot.com/feeds/3412112951292482395/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://php-mysql-shiko.blogspot.com/2011/06/how-to-install.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718486438098258521/posts/default/3412112951292482395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718486438098258521/posts/default/3412112951292482395'/><link rel='alternate' type='text/html' href='http://php-mysql-shiko.blogspot.com/2011/06/how-to-install.html' title='how to install'/><author><name>Amran Razu</name><uri>http://www.blogger.com/profile/18163403111378027087</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-6718486438098258521.post-4251084120683867017</id><published>2011-06-19T12:09:00.000-07:00</published><updated>2011-06-19T12:14:47.859-07:00</updated><title type='text'>Basic Knowledge about php,mysql</title><content type='html'>What is PHP?&lt;br /&gt;    PHP stands for PHP: Hypertext Preprocessor&lt;br /&gt;    PHP is a server-side scripting language, like ASP&lt;br /&gt;    PHP scripts are executed on the server&lt;br /&gt;    PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.)&lt;br /&gt;    PHP is an open source software&lt;br /&gt;    PHP is free to download and use&lt;br /&gt;What is MySQL?&lt;br /&gt;&lt;br /&gt;    MySQL is a database server&lt;br /&gt;    MySQL is ideal for both small and large applications&lt;br /&gt;    MySQL supports standard SQL&lt;br /&gt;    MySQL compiles on a number of platforms&lt;br /&gt;    MySQL is free to download and use&lt;br /&gt;&lt;br /&gt;PHP + MySQL&lt;br /&gt;&lt;br /&gt;    PHP combined with MySQL are cross-platform (you can develop in Windows and serve on a Unix platform)&lt;br /&gt;&lt;br /&gt;Why PHP?&lt;br /&gt;&lt;br /&gt;    PHP runs on different platforms (Windows, Linux, Unix, etc.)&lt;br /&gt;    PHP is compatible with almost all servers used today (Apache, IIS, etc.)&lt;br /&gt;    PHP is FREE to download from the official PHP resource: www.php.net&lt;br /&gt;    PHP is easy to learn and runs efficiently on the server side&lt;br /&gt;&lt;br /&gt;Where to Start?&lt;br /&gt;&lt;br /&gt;To get access to a web server with PHP support, you can:&lt;br /&gt;&lt;br /&gt;    Install Apache (or IIS) on your own server, install PHP, and MySQL&lt;br /&gt;    Or find a web hosting plan with PHP and MySQL support</content><link rel='replies' type='application/atom+xml' href='http://php-mysql-shiko.blogspot.com/feeds/4251084120683867017/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://php-mysql-shiko.blogspot.com/2011/06/basic-knowledge-about-phpmysql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718486438098258521/posts/default/4251084120683867017'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718486438098258521/posts/default/4251084120683867017'/><link rel='alternate' type='text/html' href='http://php-mysql-shiko.blogspot.com/2011/06/basic-knowledge-about-phpmysql.html' title='Basic Knowledge about php,mysql'/><author><name>Amran Razu</name><uri>http://www.blogger.com/profile/18163403111378027087</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-6718486438098258521.post-5360596228007414953</id><published>2010-09-28T02:06:00.000-07:00</published><updated>2010-09-28T02:09:07.631-07:00</updated><title type='text'>SITE MAP</title><content type='html'>&lt;a href=&quot;http://php-mysql-shiko.blogspot.com&quot;&gt;http://php-mysql-shiko.blogspot.com&lt;/a&gt;&lt;br&gt;&lt;br /&gt;&lt;a href=&quot;http://php-mysql-shiko.blogspot.com/&quot;&gt;http://php-mysql-shiko.blogspot.com/&lt;/a&gt;&lt;br&gt;&lt;br /&gt;&lt;a href=&quot;http://php-mysql-shiko.blogspot.com/2009/11/my-first-project-web-based-calendar.html&quot;&gt;http://php-mysql-shiko.blogspot.com/2009/11/my-first-project-web-based-calendar.html&lt;/a&gt;&lt;br&gt;&lt;br /&gt;&lt;a href=&quot;http://php-mysql-shiko.blogspot.com/2009/07/learn-php-mysql.html&quot;&gt;http://php-mysql-shiko.blogspot.com/2009/07/learn-php-mysql.html&lt;/a&gt;&lt;br&gt;&lt;br /&gt;&lt;a href=&quot;http://php-mysql-shiko.blogspot.com/2010/06/stringmatching-patterns-regular.html&quot;&gt;http://php-mysql-shiko.blogspot.com/2010/06/stringmatching-patterns-regular.html&lt;/a&gt;&lt;br&gt;&lt;br /&gt;&lt;a href=&quot;http://php-mysql-shiko.blogspot.com/2009/11/var-skin-skinbordercolor-cccccc.html&quot;&gt;http://php-mysql-shiko.blogspot.com/2009/11/var-skin-skinbordercolor-cccccc.html&lt;/a&gt;&lt;br&gt;&lt;br /&gt;&lt;a href=&quot;http://php-mysql-shiko.blogspot.com/2009_11_01_archive.html&quot;&gt;http://php-mysql-shiko.blogspot.com/2009_11_01_archive.html&lt;/a&gt;&lt;br&gt;&lt;br /&gt;&lt;a href=&quot;http://php-mysql-shiko.blogspot.com/search?updated-min=2009-01-01T00%3A00%3A00-08%3A00&amp;updated-max=2010-01-01T00%3A00%3A00-08%3A00&amp;max-results=3&quot;&gt;http://php-mysql-shiko.blogspot.com/search?updated-min=2009-01-01T00%3A00%3A00-08%3A00&amp;updated-max=2010-01-01T00%3A00%3A00-08%3A00&amp;max-results=3&lt;/a&gt;&lt;br&gt;&lt;br /&gt;&lt;a href=&quot;http://php-mysql-shiko.blogspot.com/2009_07_01_archive.html&quot;&gt;http://php-mysql-shiko.blogspot.com/2009_07_01_archive.html&lt;/a&gt;&lt;br&gt;&lt;br /&gt;&lt;a href=&quot;http://php-mysql-shiko.blogspot.com/search?updated-min=2010-01-01T00%3A00%3A00-08%3A00&amp;updated-max=2011-01-01T00%3A00%3A00-08%3A00&amp;max-results=1&quot;&gt;http://php-mysql-shiko.blogspot.com/search?updated-min=2010-01-01T00%3A00%3A00-08%3A00&amp;updated-max=2011-01-01T00%3A00%3A00-08%3A00&amp;max-results=1&lt;/a&gt;&lt;br&gt;&lt;br /&gt;&lt;a href=&quot;http://php-mysql-shiko.blogspot.com/2010_06_01_archive.html&quot;&gt;http://php-mysql-shiko.blogspot.com/2010_06_01_archive.html&lt;/a&gt;&lt;br&gt;&lt;br /&gt;&lt;a href=&quot;http://php-mysql-shiko.blogspot.com/feeds/posts/default&quot;&gt;http://php-mysql-shiko.blogspot.com/feeds/posts/default&lt;/a&gt;&lt;br&gt;&lt;br /&gt;&lt;a href=&quot;http://php-mysql-shiko.blogspot.com/search?updated-max=2010-06-26T01%3A15%3A00-07%3A00&amp;max-results=1&amp;reverse-paginate=true&quot;&gt;http://php-mysql-shiko.blogspot.com/search?updated-max=2010-06-26T01%3A15%3A00-07%3A00&amp;max-results=1&amp;reverse-paginate=true&lt;/a&gt;&lt;br&gt;&lt;br /&gt;&lt;a href=&quot;http://php-mysql-shiko.blogspot.com/search?updated-max=2009-11-14T04%3A00%3A00-08%3A00&amp;max-results=1&quot;&gt;http://php-mysql-shiko.blogspot.com/search?updated-max=2009-11-14T04%3A00%3A00-08%3A00&amp;max-results=1&lt;/a&gt;&lt;br&gt;&lt;br /&gt;&lt;a href=&quot;http://php-mysql-shiko.blogspot.com/search?updated-max=2009-11-25T12%3A28%3A00-08%3A00&amp;max-results=1&quot;&gt;http://php-mysql-shiko.blogspot.com/search?updated-max=2009-11-25T12%3A28%3A00-08%3A00&amp;max-results=1&lt;/a&gt;&lt;br&gt;&lt;br /&gt;&lt;a href=&quot;http://php-mysql-shiko.blogspot.com/search?updated-max=2009-11-25T12%3A28%3A00-08%3A00&amp;max-results=1&amp;reverse-paginate=true&quot;&gt;http://php-mysql-shiko.blogspot.com/search?updated-max=2009-11-25T12%3A28%3A00-08%3A00&amp;max-results=1&amp;reverse-paginate=true&lt;/a&gt;&lt;br&gt;&lt;br /&gt;&lt;a href=&quot;http://php-mysql-shiko.blogspot.com/search?updated-max=2009-11-14T04%3A00%3A00-08%3A00&amp;max-results=7&quot;&gt;http://php-mysql-shiko.blogspot.com/search?updated-max=2009-11-14T04%3A00%3A00-08%3A00&amp;max-results=7&lt;/a&gt;&lt;br&gt;&lt;br /&gt;&lt;a href=&quot;http://php-mysql-shiko.blogspot.com/feeds/785005919568808962/comments/default&quot;&gt;http://php-mysql-shiko.blogspot.com/feeds/785005919568808962/comments/default&lt;/a&gt;&lt;br&gt;&lt;br /&gt;&lt;a href=&quot;http://php-mysql-shiko.blogspot.com/feeds/2068277720800017559/comments/default&quot;&gt;http://php-mysql-shiko.blogspot.com/feeds/2068277720800017559/comments/default&lt;/a&gt;&lt;br&gt;&lt;br /&gt;&lt;a href=&quot;http://php-mysql-shiko.blogspot.com/feeds/7583099960475159973/comments/default&quot;&gt;http://php-mysql-shiko.blogspot.com/feeds/7583099960475159973/comments/default&lt;/a&gt;&lt;br&gt;&lt;br /&gt;&lt;a href=&quot;http://php-mysql-shiko.blogspot.com/feeds/8690610527471527235/comments/default&quot;&gt;http://php-mysql-shiko.blogspot.com/feeds/8690610527471527235/comments/default&lt;/a&gt;&lt;br&gt;&lt;br /&gt;&lt;a href=&quot;http://php-mysql-shiko.blogspot.com/search?updated-max=2010-06-26T01%3A15%3A00-07%3A00&amp;max-results=1&quot;&gt;http://php-mysql-shiko.blogspot.com/search?updated-max=2010-06-26T01%3A15%3A00-07%3A00&amp;max-results=1&lt;/a&gt;&lt;br&gt;&lt;br /&gt;&lt;a href=&quot;http://php-mysql-shiko.blogspot.com/search?updated-max=2010-06-26T01%3A15%3A00-07%3A00&amp;max-results=7&quot;&gt;http://php-mysql-shiko.blogspot.com/search?updated-max=2010-06-26T01%3A15%3A00-07%3A00&amp;max-results=7&lt;/a&gt;&lt;br&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-mysql-shiko.blogspot.com/feeds/5360596228007414953/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://php-mysql-shiko.blogspot.com/2010/09/site-map.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718486438098258521/posts/default/5360596228007414953'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718486438098258521/posts/default/5360596228007414953'/><link rel='alternate' type='text/html' href='http://php-mysql-shiko.blogspot.com/2010/09/site-map.html' title='SITE MAP'/><author><name>Amran Razu</name><uri>http://www.blogger.com/profile/18163403111378027087</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-6718486438098258521.post-2068277720800017559</id><published>2010-06-26T01:15:00.000-07:00</published><updated>2010-06-26T01:31:39.664-07:00</updated><title type='text'>@@String::::....Matching Patterns (Regular Expressions)</title><content type='html'>PHP includes a couple of different sets of regex functions that you can use. The one we will use exclusively here is the PCRE extension. The PCRE functions (all prefaced by preg_) is the preferred library to use. It tends to be faster than the other option, and it uses the same regex syntax as Perl, another popular programming language that many programmers are already familiar with.&lt;br /&gt;&lt;br /&gt;To best demonstrate the usefulness of regular expressions, let&#39;s examine a relatively simple problem: searching for a United States ZIP Code. Such numbers are either a five-digit number, or are known as a ZIP+4 and look like &quot;12345-6789.&quot; Attempting this search with the standard PHP string functions would require a multiline algorithm. However, with regular expressions, a single function, preg_match(), is all that is required, here&#39;s given example :&lt;br /&gt;&lt;br /&gt;&lt;?php&lt;br /&gt;// A function to detect zipcodes in a string.&lt;br /&gt;function detect_zipcode($string) {&lt;br /&gt;    // Use regex to look for zipcodes, return true or false&lt;br /&gt;    return preg_match(&#39;/\b\d{5}(-\d{4})?\b/&#39;, $string);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;// Try a few examples:&lt;br /&gt;echo &#39;&lt;pre&gt;&#39;;&lt;br /&gt;&lt;br /&gt;// A true example:&lt;br /&gt;if (detect_zipcode(&#39;Frederick, MD  21701-3883&#39;)) {&lt;br /&gt;    echo &quot;Test 1: true\n&quot;;&lt;br /&gt;}&lt;br /&gt;// Another true example:&lt;br /&gt;if (detect_zipcode(&#39;The zipcode 26623 is the area in which I grew up.&#39;)) {&lt;br /&gt;    echo &quot;Test 2: true\n&quot;;&lt;br /&gt;}&lt;br /&gt;// A False example:&lt;br /&gt;if (detect_zipcode(&#39;The Phone Number is 301-555-1212&#39;)) {&lt;br /&gt;    echo &quot;Test 3: true\n&quot;;&lt;br /&gt;}&lt;br /&gt;// Another false example:&lt;br /&gt;if (detect_zipcode(&#39;42696-313109&#39;)) {&lt;br /&gt;    echo &quot;Test 4: true\n&quot;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;echo &#39;&lt;/pre&gt;&#39;;&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OUTPUT:&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXwRhyphenhyphenwEYfYPJJFZvO64P8cBwFfycYlAJe35lLQgg52kvps9DpwlzPCg1H5Ec_rt_aTC5DFHqqwT9St7CGHlxDQsJ5pvlLUIwCqJtTCgeULP0HWDlB0OQKxq74sNG9W0HBPK2S6zebCxSX/s1600/800.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 255px; height: 185px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXwRhyphenhyphenwEYfYPJJFZvO64P8cBwFfycYlAJe35lLQgg52kvps9DpwlzPCg1H5Ec_rt_aTC5DFHqqwT9St7CGHlxDQsJ5pvlLUIwCqJtTCgeULP0HWDlB0OQKxq74sNG9W0HBPK2S6zebCxSX/s320/800.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5486993926450154930&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p class=&quot;docText&quot;&gt;As a quick reference, here are some of the most common syntax  characters for use in PCRE regular expressions:&lt;/p&gt; &lt;p class=&quot;docText&quot;&gt;&lt;span class=&quot;docEmphStrong&quot;&gt;Pattern matches:&lt;/span&gt;&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt; &lt;/p&gt;&lt;p class=&quot;docList&quot;&gt;\d = Digit&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;&lt;p class=&quot;docList&quot;&gt;\D = Not a digit&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;&lt;p class=&quot;docList&quot;&gt;\s = Whitespace&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;&lt;p class=&quot;docList&quot;&gt;&lt;tt&gt;\S&lt;/tt&gt; = Not whitespace&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;&lt;p class=&quot;docList&quot;&gt;. = Any character (except \n)&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;&lt;p class=&quot;docList&quot;&gt;^ = Start of string&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;&lt;p class=&quot;docList&quot;&gt;$ = End of string&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;&lt;p class=&quot;docList&quot;&gt;&lt;tt&gt;\b&lt;/tt&gt; = Word boundary&lt;/p&gt; &lt;/blockquote&gt; &lt;p class=&quot;docText&quot;&gt;&lt;span class=&quot;docEmphStrong&quot;&gt;Pattern match extenders:&lt;/span&gt;&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt; &lt;/p&gt;&lt;p class=&quot;docList&quot;&gt;&lt;tt&gt;?&lt;/tt&gt; = Previous item is match 0 or 1 times.&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;&lt;p class=&quot;docList&quot;&gt;&lt;tt&gt;*&lt;/tt&gt; = Previous item is matched 0 or more times.&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;&lt;p class=&quot;docList&quot;&gt;&lt;a name=&quot;iddle1152&quot;&gt;&lt;/a&gt;&lt;a name=&quot;iddle1331&quot;&gt;&lt;/a&gt;&lt;a name=&quot;iddle1482&quot;&gt;&lt;/a&gt;&lt;a name=&quot;iddle1815&quot;&gt;&lt;/a&gt;&lt;a name=&quot;iddle1829&quot;&gt;&lt;/a&gt;&lt;a name=&quot;iddle1907&quot;&gt;&lt;/a&gt;&lt;a name=&quot;iddle1952&quot;&gt;&lt;/a&gt;&lt;a name=&quot;iddle2006&quot;&gt;&lt;/a&gt;&lt;a name=&quot;iddle2098&quot;&gt;&lt;/a&gt;&lt;tt&gt;+&lt;/tt&gt; = Previous item is matched 1 or more times.&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;&lt;p class=&quot;docList&quot;&gt;&lt;tt&gt;{n}&lt;/tt&gt; = Previous item is matched exactly &lt;tt&gt;n&lt;/tt&gt;  times.&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;&lt;p class=&quot;docList&quot;&gt;&lt;tt&gt;{n,}&lt;/tt&gt; = Previous item is matched at least &lt;tt&gt;n&lt;/tt&gt;  times.&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;&lt;p class=&quot;docList&quot;&gt;&lt;tt&gt;{n,m}&lt;/tt&gt; = Previous item is matched at least &lt;tt&gt;n&lt;/tt&gt;  and at most &lt;tt&gt;m&lt;/tt&gt; times.&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;&lt;p class=&quot;docList&quot;&gt;&lt;tt&gt;?&lt;/tt&gt; (after any of above) = Match as few as possible  times.&lt;/p&gt; &lt;/blockquote&gt; &lt;p class=&quot;docText&quot;&gt;&lt;span class=&quot;docEmphStrong&quot;&gt;Option patterns:&lt;/span&gt;&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt; &lt;/p&gt;&lt;p class=&quot;docList&quot;&gt;&lt;tt&gt;(pattern)&lt;/tt&gt; = Groups the pattern to act as one item and  captures it&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;&lt;p class=&quot;docList&quot;&gt;&lt;tt&gt;(x|y)&lt;/tt&gt; = Matches either pattern &lt;tt&gt;x&lt;/tt&gt;, or pattern  &lt;tt&gt;y&lt;/tt&gt;&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;&lt;p class=&quot;docList&quot;&gt;&lt;tt&gt;[abc]&lt;/tt&gt; = Matches either the character &lt;tt&gt;a&lt;/tt&gt;,  &lt;tt&gt;b&lt;/tt&gt;, or &lt;tt&gt;c&lt;/tt&gt;&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;&lt;p class=&quot;docList&quot;&gt;&lt;tt&gt;[^abc]&lt;/tt&gt; = Matches any character except &lt;tt&gt;a&lt;/tt&gt;,  &lt;tt&gt;b&lt;/tt&gt;, or &lt;tt&gt;c&lt;/tt&gt;&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;&lt;p class=&quot;docList&quot;&gt;&lt;tt&gt;[a-f]&lt;/tt&gt; = Matches characters &lt;tt&gt;a&lt;/tt&gt; through  &lt;tt&gt;f&lt;/tt&gt;&lt;/p&gt; &lt;p&gt;If you want to learn more try to read &lt;a class=&quot;docLink&quot; href=&quot;http://php.net/pcre&quot; target=&quot;_blank&quot;&gt;http://php.net/pcre&lt;/a&gt;.&lt;/p&gt;&lt;/blockquote&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Cleaning Up Whitespace&lt;/span&gt;&lt;/span&gt;...::--&lt;br /&gt;&lt;p class=&quot;docText&quot;&gt;If you want to just remove space from the beginning or end of a  string, you can use the built-in function &lt;tt&gt;trim()&lt;/tt&gt; to do that for you.  However, often you want to completely clean up the data. You will want to remove  leading/trailing spaces, collapse multiple spaces into a single one, and even  replace all other types of whitespace with a regular space.&lt;/p&gt;&lt;p class=&quot;docText&quot;&gt;To accomplish this, you can use the regular expression functions of PHP as like as below:&lt;/p&gt;&lt;pre&gt;&lt;?php&lt;br /&gt;$str = &quot; This line  contains\tliberal \r\n use of   whitespace.\n\n&quot;;&lt;br /&gt;&lt;br /&gt;// First remove the leading/trailing whitespace&lt;br /&gt;$str = trim($str);&lt;br /&gt;&lt;br /&gt;// Now remove any doubled-up whitespace&lt;br /&gt;$str = preg_replace(&#39;/\s(?=\s)/&#39;, &#39;&#39;, $str);&lt;br /&gt;&lt;br /&gt;// Finally, replace any non-space whitespace, with a space&lt;br /&gt;$str = preg_replace(&#39;/[\n\r\t]/&#39;, &#39; &#39;, $str);&lt;br /&gt;&lt;br /&gt;// Echo out: &#39;This line contains liberal use of whitespace.&#39;&lt;br /&gt;echo &quot;&lt;pre&gt;{$str}&lt;/pre&gt;&quot;;&lt;br /&gt;?&gt;&lt;/pre&gt;&lt;br /&gt;OUTPUT:&lt;br /&gt;&lt;pre style=&quot;color: rgb(255, 255, 153);&quot;&gt;This line contains liberal use of whitespace.&lt;/pre&gt;&lt;br /&gt;&lt;title&gt;Section 1.1.  Matching Patterns (Regular Expressions)&lt;/title&gt;&lt;link href=&quot;images/style.css&quot; type=&quot;text/css&quot; rel=&quot;STYLESHEET&quot;&gt;&lt;link href=&quot;images/docsafari.css&quot; type=&quot;text/css&quot; rel=&quot;STYLESHEET&quot;&gt;&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td valign=&quot;top&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-mysql-shiko.blogspot.com/feeds/2068277720800017559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://php-mysql-shiko.blogspot.com/2010/06/stringmatching-patterns-regular.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718486438098258521/posts/default/2068277720800017559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718486438098258521/posts/default/2068277720800017559'/><link rel='alternate' type='text/html' href='http://php-mysql-shiko.blogspot.com/2010/06/stringmatching-patterns-regular.html' title='@@String::::....Matching Patterns (Regular Expressions)'/><author><name>Amran Razu</name><uri>http://www.blogger.com/profile/18163403111378027087</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><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXwRhyphenhyphenwEYfYPJJFZvO64P8cBwFfycYlAJe35lLQgg52kvps9DpwlzPCg1H5Ec_rt_aTC5DFHqqwT9St7CGHlxDQsJ5pvlLUIwCqJtTCgeULP0HWDlB0OQKxq74sNG9W0HBPK2S6zebCxSX/s72-c/800.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6718486438098258521.post-7583099960475159973</id><published>2009-11-25T12:28:00.001-08:00</published><updated>2009-11-25T12:28:57.917-08:00</updated><title type='text'></title><content type='html'>&lt;!-- Include the Google Friend Connect javascript library. --&gt;&lt;br /&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://www.google.com/friendconnect/script/friendconnect.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;&lt;!-- Define the div tag where the gadget will be inserted. --&gt;&lt;br /&gt;&lt;div id=&quot;div-3966730290465976811&quot; style=&quot;width:276px;border:1px solid #cccccc;&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;!-- Render the gadget into a div. --&gt;&lt;br /&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;br /&gt;var skin = {};&lt;br /&gt;skin[&#39;BORDER_COLOR&#39;] = &#39;#cccccc&#39;;&lt;br /&gt;skin[&#39;ENDCAP_BG_COLOR&#39;] = &#39;#e0ecff&#39;;&lt;br /&gt;skin[&#39;ENDCAP_TEXT_COLOR&#39;] = &#39;#333333&#39;;&lt;br /&gt;skin[&#39;ENDCAP_LINK_COLOR&#39;] = &#39;#0000cc&#39;;&lt;br /&gt;skin[&#39;ALTERNATE_BG_COLOR&#39;] = &#39;#ffffff&#39;;&lt;br /&gt;skin[&#39;CONTENT_BG_COLOR&#39;] = &#39;#ffffff&#39;;&lt;br /&gt;skin[&#39;CONTENT_LINK_COLOR&#39;] = &#39;#0000cc&#39;;&lt;br /&gt;skin[&#39;CONTENT_TEXT_COLOR&#39;] = &#39;#333333&#39;;&lt;br /&gt;skin[&#39;CONTENT_SECONDARY_LINK_COLOR&#39;] = &#39;#7777cc&#39;;&lt;br /&gt;skin[&#39;CONTENT_SECONDARY_TEXT_COLOR&#39;] = &#39;#666666&#39;;&lt;br /&gt;skin[&#39;CONTENT_HEADLINE_COLOR&#39;] = &#39;#333333&#39;;&lt;br /&gt;skin[&#39;NUMBER_ROWS&#39;] = &#39;4&#39;;&lt;br /&gt;google.friendconnect.container.setParentUrl(&#39;/&#39; /* location of rpc_relay.html and canvas.html */);&lt;br /&gt;google.friendconnect.container.renderMembersGadget(&lt;br /&gt; { id: &#39;div-3966730290465976811&#39;,&lt;br /&gt;   site: &#39;16856087081430007451&#39; },&lt;br /&gt;  skin);&lt;br /&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-mysql-shiko.blogspot.com/feeds/7583099960475159973/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://php-mysql-shiko.blogspot.com/2009/11/var-skin-skinbordercolor-cccccc.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718486438098258521/posts/default/7583099960475159973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718486438098258521/posts/default/7583099960475159973'/><link rel='alternate' type='text/html' href='http://php-mysql-shiko.blogspot.com/2009/11/var-skin-skinbordercolor-cccccc.html' title=''/><author><name>Amran Razu</name><uri>http://www.blogger.com/profile/18163403111378027087</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-6718486438098258521.post-8690610527471527235</id><published>2009-11-14T04:00:00.000-08:00</published><updated>2010-06-26T01:03:42.013-07:00</updated><title type='text'>PHP Internals</title><content type='html'>1 Strings&lt;br /&gt;  2 Numbers&lt;br /&gt;  3 Time and Date&lt;br /&gt;  4 Variables&lt;br /&gt;  5 Arrays&lt;br /&gt;  6 Functions&lt;br /&gt;  7 Classes and Objects&lt;br /&gt;  8 Files and Directories&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  1 Strings:&lt;br /&gt;Quick learn:&lt;br /&gt;Find the length of a string:&lt;br /&gt;&lt;br /&gt;$length = strlen($string);&lt;br /&gt;This function returns the number of characters in a string.&lt;br /&gt;&lt;br /&gt;Full documentation: http://php.net/strlen&lt;br /&gt;&lt;br /&gt;Split a string using a string as a separator:&lt;br /&gt;&lt;br /&gt;$array_of_strings = explode($separator, $string);&lt;br /&gt;This function returns the array of substrings created by splitting a string at every point the separator string appears.&lt;br /&gt;&lt;br /&gt;Full documentation: &lt;a href=&quot;http://php.net/explode&quot;&gt;http://php.net/explode&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Create a string from an array of strings, with a separator:&lt;br /&gt;&lt;br /&gt;$string = implode($separator, $array_of_strings);&lt;br /&gt;The returned string will be a concatenation of all the strings in the array, with the separator string between them.&lt;br /&gt;&lt;br /&gt;Full documentation: &lt;a href=&quot;http://php.net/implode&quot;&gt;http://php.net/implode&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Remove extra space from the beginning and end of a string:&lt;br /&gt;&lt;br /&gt;$trimmed_string = trim($string);&lt;br /&gt;The returned string will have any whitespace characters removed from the beginning and end of the string. The functions rtrim() and ltrim() remove whitespace from only the right or left end of the string, respectively.&lt;br /&gt;&lt;br /&gt;Full documentation: &lt;a href=&quot;http://php.net/trim&quot;&gt;http://php.net/trim&lt;/a&gt;, &lt;a href=&quot;http://php.net/rtrim&quot;&gt;http://php.net/rtrim&lt;/a&gt;, and &lt;a href=&quot;http://php.net/ltrim&quot;&gt;http://php.net/ltrim&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Replace all occurrences of one string with another string:&lt;br /&gt;&lt;br /&gt;$result_string = str_replace($old, $new, $full);&lt;br /&gt;All occurrences of the old string within the full string are replaced with the new string. A case-insensitive version is also available as the function str_ireplace().&lt;br /&gt;&lt;br /&gt;Full documentation: &lt;a href=&quot;http://php.net/str_replace&quot;&gt;http://php.net/str_replace&lt;/a&gt; and &lt;a href=&quot;http://php.net/str_ireplace&quot;&gt;http://php.net/str_ireplace&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Pad a string to a specified length:&lt;br /&gt;&lt;br /&gt;$padded = str_pad($string, $length);&lt;br /&gt;The returned string is at least $length characters long. Spaces are added to the right of the string to achieve this. With optional arguments, any string can be used as padding along with whether the padding will occur at the beginning or end of string.&lt;br /&gt;&lt;br /&gt;Full documentation: &lt;a href=&quot;http://php.net/str_pad&quot;&gt;http://php.net/str_pad&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Create a larger string via repetition:&lt;br /&gt;&lt;br /&gt;$repeat = str_repeat($string, $nrepeats);&lt;br /&gt;The input string is replicated the specified number of times to create the result.&lt;br /&gt;&lt;br /&gt;Full documentation: &lt;a href=&quot;http://php.net/str_repeat&quot;&gt;http://php.net/str_repeat&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;Split a string into an array of characters&lt;br /&gt;&lt;br /&gt;$array = str_split($string);&lt;br /&gt;This function returns an array comprising the characters that make up the string.&lt;br /&gt;&lt;br /&gt;Full documentation: http://php.net/str_split&lt;br /&gt;&lt;br /&gt;Return a portion of a string:&lt;br /&gt;&lt;br /&gt;$substring = substr($string, $n, $length);&lt;br /&gt;The portion of the string starting at the nth character for $length number of characters is returned. If $n is negative, the substring will start that many characters from the end of the string. If $length is negative, that many characters will be omitted from the end of the string.&lt;br /&gt;&lt;br /&gt;Full documentation: http://php.net/substr&lt;br /&gt;&lt;br /&gt;Make a string all uppercase or lowercase letters:&lt;br /&gt;&lt;br /&gt;$lower = strtolower($string);&lt;br /&gt;&lt;br /&gt;$upper = strtoupper($string);&lt;br /&gt;These functions simply return, respectively, the lowercase or uppercase versions of the string.&lt;br /&gt;&lt;br /&gt;Full documentation: http://php.net/strtolower and http://php.net/strtoupper&lt;br /&gt;&lt;br /&gt;Parse a string based on a format:&lt;br /&gt;&lt;br /&gt;$array = sscanf($string, $format);&lt;br /&gt;The returned array contains each extracted value from the string according to the specified format.&lt;br /&gt;&lt;br /&gt;Full documentation: http://php.net/sscanf&lt;br /&gt;&lt;br /&gt;Output values using well-defined formats:&lt;br /&gt;&lt;br /&gt;printf($format, $var1, $var2,...);&lt;br /&gt;Using a simple syntax, the format argument defines how the subsequent arguments are printed. This function is part of a family of formatting functions.&lt;br /&gt;&lt;br /&gt;Full documentation: http://php.net/printf, http://php.net/sprintf, http://php.net/fprintf&lt;br /&gt;&lt;br /&gt;Compare two strings:&lt;br /&gt;&lt;br /&gt;$result = strcmp($string1, $string2);&lt;br /&gt;This function returns a number less than, equal to, or greater than 0 depending on how the strings compare alphabetically. 0 is returned if the strings are equivalent. A case-insensitive version is also available as strcasecmp().&lt;br /&gt;&lt;br /&gt;Full documentation: http://php.net/strcmp and http://php.net/strcasecmp&lt;br /&gt;&lt;br /&gt;Compare two strings as a human would do so:&lt;br /&gt;&lt;br /&gt;$result = strnatcmp($string1, $string2);&lt;br /&gt;&lt;br /&gt;$result = strnatcasecmp($string1, $string2);&lt;br /&gt;The comparison is based on how people order stringsthat is, strings with numbers in them are ordered based on value, not just characters. The comparison is case-sensitive for the former call while being case-insensitve for the latter.&lt;br /&gt;&lt;br /&gt;Full documentation: http://php.net/strnatcmp&lt;br /&gt;&lt;br /&gt;Determine where the first occurrence of a string is within another string:&lt;br /&gt;&lt;br /&gt;$pos = strpos($bigstring, $search);&lt;br /&gt;This function returns the position of the search string in $bigstring. If not found, false is returned. A case-insensitive version is also available as stripos().&lt;br /&gt;&lt;br /&gt;Full documentation: http://php.net/strpos and http://php.net/stripos&lt;br /&gt;&lt;br /&gt;Determine where the last occurrence of a string is within another string:&lt;br /&gt;&lt;br /&gt;$lastpos = strrpos($bigstring, $search);&lt;br /&gt;This function returns the position of the last occurrence of the search string in $bigstring. If not found, false is returned. A case-insensitive version is also available as strripos().&lt;br /&gt;&lt;br /&gt;Full documentation: http://php.net/strrpos and http://php.net/strripos&lt;br /&gt;&lt;br /&gt;Search for any of a set of characters within a string:&lt;br /&gt;&lt;br /&gt;$found = strpbrk($string, $characters);&lt;br /&gt;The string is scanned for any of the characters in the $characters string. If a match is found, it returns a string starting from the character it just matched to the end of the string.&lt;br /&gt;&lt;br /&gt;Full documentation: http://php.net/strpbrk</content><link rel='replies' type='application/atom+xml' href='http://php-mysql-shiko.blogspot.com/feeds/8690610527471527235/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://php-mysql-shiko.blogspot.com/2009/11/my-first-project-web-based-calendar.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718486438098258521/posts/default/8690610527471527235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718486438098258521/posts/default/8690610527471527235'/><link rel='alternate' type='text/html' href='http://php-mysql-shiko.blogspot.com/2009/11/my-first-project-web-based-calendar.html' title='PHP Internals'/><author><name>Amran Razu</name><uri>http://www.blogger.com/profile/18163403111378027087</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-6718486438098258521.post-785005919568808962</id><published>2009-07-12T02:47:00.000-07:00</published><updated>2013-06-23T10:14:35.447-07:00</updated><title type='text'>Learn PHP MySQL</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFBrA0-VvHoNIRCh6gWNlwldPHZ9ON5d_dBnHfBUPk5hyLMnEY3ylbRDiB94Ge5sghltGYBUsRU5T4IdQ0CYr7_GyV9-BgKR0oImGyCfI3PK1ABLIPcdM_ucacUfALhlfRXEO9rWJ7h-TB/s1600-h/phpmysql.gif&quot; onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5357512607619022722&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFBrA0-VvHoNIRCh6gWNlwldPHZ9ON5d_dBnHfBUPk5hyLMnEY3ylbRDiB94Ge5sghltGYBUsRU5T4IdQ0CYr7_GyV9-BgKR0oImGyCfI3PK1ABLIPcdM_ucacUfALhlfRXEO9rWJ7h-TB/s320/phpmysql.gif&quot; style=&quot;cursor: pointer; float: left; height: 234px; margin: 0pt 10px 10px 0pt; width: 190px;&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 130%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;What Is PHP?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: times new roman;&quot;&gt;PHP is an open-source, server-side, HTML-embedded Web-scripting language that is compatible&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: times new roman;&quot;&gt;with all the major Web servers (most notably Apache). PHP enables you to embed code&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: times new roman;&quot;&gt;fragments in normal HTML pages—code that is interpreted as your pages are served up to users.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: times new roman;&quot;&gt;PHP stands for PHP: Hypertext Preprocessor.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: times new roman;&quot;&gt;PHP was developed before ASP. Over the past few years.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: times new roman;&quot;&gt;PHP is an official module of Apache HTTP Server, the market-leading free Web server that&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: times new roman;&quot;&gt;runs about 67 percent of the World Wide Web (according to the widely quoted Netcraft Web&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: times new roman;&quot;&gt;server survey). This means that the PHP scripting engine can be built into the Web server&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: times new roman;&quot;&gt;itself, leading to faster processing, more efficient memory allocation, and greatly simplified&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: times new roman;&quot;&gt;maintenance. Like Apache Server, PHP is fully cross-platform, meaning it runs native on several&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: times new roman;&quot;&gt;flavors of Unix, as well as on Windows and now on Mac OS X. All projects under the aegis&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: times new roman;&quot;&gt;of the Apache Software Foundation—including PHP—are open source software.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: times new roman; font-size: 130%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Why PHP?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: times new roman;&quot;&gt;The short answer is that it’s free, it’s open source,it’s easy to learn, and it plays well with others.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: times new roman; font-size: 130%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;What is MySQL?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 85%;&quot;&gt;MySQL (pronounced My Ess Q El) is an open source, SQL Relational Database Management&lt;br /&gt;System (RDBMS) that is free for many uses.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 130%; font-weight: bold;&quot;&gt;Why MySQL?&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: times new roman;&quot;&gt;The short answer is that it’s free, it’s open source,it’s easy to learn, and it plays well with others.&lt;br /&gt;&lt;br /&gt;Ads :&lt;a href=&quot;http://baileysworldwide.com/&quot;&gt;baileysworldwide&lt;/a&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href=&quot;http://chameleonexpediting.com/&quot;&gt;Chameleonexpediting.com&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-mysql-shiko.blogspot.com/feeds/785005919568808962/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://php-mysql-shiko.blogspot.com/2009/07/learn-php-mysql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6718486438098258521/posts/default/785005919568808962'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6718486438098258521/posts/default/785005919568808962'/><link rel='alternate' type='text/html' href='http://php-mysql-shiko.blogspot.com/2009/07/learn-php-mysql.html' title='Learn PHP MySQL'/><author><name>Amran Razu</name><uri>http://www.blogger.com/profile/18163403111378027087</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><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFBrA0-VvHoNIRCh6gWNlwldPHZ9ON5d_dBnHfBUPk5hyLMnEY3ylbRDiB94Ge5sghltGYBUsRU5T4IdQ0CYr7_GyV9-BgKR0oImGyCfI3PK1ABLIPcdM_ucacUfALhlfRXEO9rWJ7h-TB/s72-c/phpmysql.gif" height="72" width="72"/><thr:total>0</thr:total></entry></feed>