<?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-2824414569643868576</id><updated>2026-10-14T12:17:08.269-07:00</updated><category term="Ruby on Rails"/><category term="PHP"/><category term="ror"/><category term="JavaScript"/><category term="array"/><category term="CSS"/><category term="HTML"/><category term="ajax"/><category term="web tools"/><category term="Flash"/><category term="cakephp"/><category term="pagination"/><category term="search engine"/><category term="Music Radio"/><category term="crontab"/><category term="general reading"/><category term="html5 and css3"/><category term="js"/><category term="php pagination"/><category term="-moz-border-radius"/><category term="5 steps to embed dynamic javascript code"/><category term="Auto-refresh Twitter feeds"/><category term="Auto-refresh in js"/><category term="Automatically Fill in Email Subject html"/><category term="Cannot view images in GMail"/><category term="Convert a String into Time"/><category term="Convert a String into Time in ror"/><category term="Difference between plugin and gem"/><category term="Dummy Text"/><category term="Error date() function on Joomla"/><category term="Flash + PHP"/><category term="Full text search options"/><category term="Gmail doesn&#39;t display images in my email"/><category term="Google mail image doesn&#39;t display in IE"/><category term="Highlight all text by clicking textfield or textarea"/><category term="IE doesnt display google mail image"/><category term="Lorem Ipsum"/><category term="Modernizr"/><category term="Modernizr plugin"/><category term="Not able to see images in gmail"/><category term="Online PHP script tester"/><category term="PREG_SPLIT_OFFSET_CAPTURE"/><category term="Reducing Log File Size"/><category term="Reducing Log File Size in ror"/><category term="Refresh div when insert database row in php"/><category term="Running Digital Clock"/><category term="a to z"/><category term="action mailer"/><category term="acts_as_xapian"/><category term="always align to left css"/><category term="always align to right css"/><category term="always stick to right css"/><category term="array in php"/><category term="array intersect"/><category term="associate array"/><category term="auto email forwarding in lotus notes"/><category term="automatic refresh file"/><category term="basic array"/><category term="button hover in css"/><category term="button onmouseout and button onmouseover"/><category term="capitalize"/><category term="capitalize character"/><category term="capitalize word in ror"/><category term="center image in a container"/><category term="change routing in ror"/><category term="check box"/><category term="check php version in Linux"/><category term="clear float"/><category term="close thickbox"/><category term="close thickbox in js"/><category term="closedir"/><category term="compare timestamp"/><category term="compress"/><category term="confirm dialog box in js"/><category term="convert 64bit integer to string in php"/><category term="convert integer to string in php"/><category term="create array"/><category term="create array in js"/><category term="create array using for loop in javascript"/><category term="create dynamic js code with cakephp"/><category term="create objects in js"/><category term="cron job"/><category term="cronjob"/><category term="crop and set image position"/><category term="crop image"/><category term="css crop"/><category term="current url directory"/><category term="cut and centered image"/><category term="cut image"/><category term="datetime"/><category term="delete multiple items using check box"/><category term="delete multiple items using check box in ror"/><category term="desktop scroll"/><category term="different size ratio"/><category term="download file in php"/><category term="editor"/><category term="email open new window in JavaScript"/><category term="email setting in lotus notes"/><category term="enable forwarding mail to other email account"/><category term="estimate"/><category term="explode image structure"/><category term="explode in php"/><category term="export dynamic date to excel in php"/><category term="export excel in php"/><category term="export image to excel in php"/><category term="extract img src from html"/><category term="field validation"/><category term="file upload"/><category term="file upload in ror"/><category term="find facebook id"/><category term="find index from array"/><category term="find link in string"/><category term="flash cross domain access"/><category term="for loop"/><category term="form validation in js"/><category term="form validation with Prototype in js"/><category term="forwarding email in lotus notes"/><category term="full screen overlay js"/><category term="get array value into img tag"/><category term="get current url"/><category term="get img src from a database row"/><category term="get img src in an array"/><category term="get previous url"/><category term="get url parameter in php"/><category term="gmail table problem"/><category term="group a multi dimensional array"/><category term="group array"/><category term="group generic array"/><category term="group object"/><category term="haslayout"/><category term="hide overflow"/><category term="html editor"/><category term="if else condition in vbulletin"/><category term="image always stick to left css"/><category term="image sprite"/><category term="img tag attribute into an array"/><category term="intersection"/><category term="javasccript"/><category term="javascript confirm()"/><category term="jquery"/><category term="just text visible"/><category term="link_to_remote loading in ror"/><category term="loading effect in ror"/><category term="loading image generator"/><category term="loop"/><category term="loop alphabet"/><category term="loop alphabet in ror"/><category term="mailto in html"/><category term="map routing in ror"/><category term="md5 hash generator"/><category term="md5()"/><category term="mobile device resolution"/><category term="mobile scroll"/><category term="move image around within a div"/><category term="multi dimensional array. array unique"/><category term="nice scroll"/><category term="nil item in ror"/><category term="onchange drop down list in js"/><category term="online color picker"/><category term="online color scheme"/><category term="online md5 generator"/><category term="online tools"/><category term="open xml file in php"/><category term="opendir"/><category term="overflow hidden"/><category term="pagination in ajax"/><category term="pagination php"/><category term="parse a URL and return its components"/><category term="parse_url"/><category term="positioning css"/><category term="preg match all"/><category term="preg_split in php"/><category term="print array in loop using js"/><category term="print objects in loop using js"/><category term="print splitted string using loop"/><category term="progress button"/><category term="read filename in file directory"/><category term="read xml file in php"/><category term="readdir"/><category term="refresh parent page"/><category term="regex expression"/><category term="regular expression"/><category term="remote_form_for loading in ror"/><category term="remove duplicate item in array using ror"/><category term="remove duplicate value"/><category term="remove element from array"/><category term="remove nil item in ror"/><category term="remove scientific notation in php"/><category term="remove specifc items or elements in array"/><category term="replace character"/><category term="replace character in ror"/><category term="replace characters"/><category term="replace spacing to a space character"/><category term="request url"/><category term="resize image"/><category term="retrieve flash data from different domain"/><category term="return confirm in js"/><category term="ror references"/><category term="ror tutorials"/><category term="run xml file internally in php"/><category term="save file in php"/><category term="scrolling bar js"/><category term="search engine in ajax"/><category term="search engine in ror"/><category term="search img src in a string"/><category term="send email"/><category term="send email in ror"/><category term="set condition in vbulletin"/><category term="show hide content"/><category term="show items per page"/><category term="show items per page in ajax"/><category term="show tab content"/><category term="simple button hover in css"/><category term="simple pagination"/><category term="simple pagination. page pagination in array"/><category term="split and group"/><category term="split in php"/><category term="split string and store into array"/><category term="split string in js"/><category term="split string using array in php"/><category term="submit button"/><category term="submit mailto using html form"/><category term="substr in php"/><category term="table border in gmail"/><category term="table spacing in gmail"/><category term="tester"/><category term="textarea"/><category term="textfield"/><category term="thickbox"/><category term="thinking sphinx"/><category term="toggle content"/><category term="total size of array"/><category term="total size of objects"/><category term="track url"/><category term="transferring flash data across domains"/><category term="tutorials"/><category term="uncompressed"/><category term="uninstall a plugin in Rails"/><category term="unset"/><category term="url function"/><category term="url link parameter"/><category term="url path"/><category term="validate file upload in js"/><category term="web design"/><title type='text'>Programming Tips</title><subtitle type='html'>Research on Ruby on Rails, JavaScript, CSS, HTML, Php and Flash</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://programming-tut.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://programming-tut.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><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>120</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2824414569643868576.post-4943652435835045576</id><published>2015-05-20T19:04:00.000-07:00</published><updated>2015-05-20T19:05:39.659-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="array"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="simple pagination. page pagination in array"/><title type='text'>PHP: Page pagination in array</title><content type='html'>Code snippet:
&lt;div class=&quot;box&quot;&gt;&lt;pre&gt;$page = !empty( $_GET[&#39;page&#39;] ) ? (int) $_GET[&#39;page&#39;] : 1;
$total = count( $yourDataArray ); &lt;font color=&quot;green&quot;&gt;//total items in array&lt;/font&gt;
$limit = 10; &lt;font color=&quot;green&quot;&gt;//per page&lt;/font&gt;    
$totalPages = ceil( $total/ $limit ); &lt;font color=&quot;green&quot;&gt;//calculate total pages&lt;/font&gt;
$page = max($page, 1); &lt;font color=&quot;green&quot;&gt;//get 1 page when $_GET[&#39;page&#39;] &lt;= 0&lt;/font&gt;
$page = min($page, $totalPages); &lt;font color=&quot;green&quot;&gt;//get last page when $_GET[&#39;page&#39;] &gt; $totalPages&lt;/font&gt;
$offset = ($page - 1) * $limit;
if( $offset &lt; 0 ) $offset = 0;

$yourDataArray = array_slice( $yourDataArray, $offset, $limit );

echo &#39;Pages: &#39;;
for($i = 1; $i &lt;= $totalPages; $i++){
 
 if($i == $page){
  echo &#39;&amp;lt;b&gt;&#39; . $i . &#39;&amp;lt;/b&gt; &#39;;
 }elseif($i != $page){
  echo &#39;&amp;lt;a href=&quot;testpage.php?page=&#39; . $i . &#39;&quot;&gt;&#39; . $i . &#39;&amp;lt;/a&gt; &#39;;
 }
 
}
&lt;/pre&gt;&lt;/div&gt;

Output:
&lt;div class=&quot;box&quot;&gt;&lt;pre&gt;Pages: &lt;b&gt;1&lt;/b&gt; &lt;a href=&quot;#&quot; style=&quot;text-decoration: underline;&quot;&gt;2&lt;/a&gt; &lt;a href=&quot;#&quot; style=&quot;text-decoration: underline;&quot;&gt;3&lt;/a&gt; &lt;a href=&quot;#&quot; style=&quot;text-decoration: underline;&quot;&gt;4&lt;/a&gt; 
&lt;/pre&gt;&lt;/div&gt;
&lt;br&gt;
Refer: &lt;a href=&quot;http://stackoverflow.com/questions/26451362/how-to-add-php-pagination-in-arrays&quot; target=&quot;_blank&quot;&gt;http://stackoverflow.com/questions/26451362/how-to-add-php-pagination-in-arrays&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://programming-tut.blogspot.com/feeds/4943652435835045576/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programming-tut.blogspot.com/2015/05/php-page-pagination-in-array.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/4943652435835045576'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/4943652435835045576'/><link rel='alternate' type='text/html' href='http://programming-tut.blogspot.com/2015/05/php-page-pagination-in-array.html' title='PHP: Page pagination in array'/><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><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2824414569643868576.post-1132937801501808900</id><published>2015-05-19T20:16:00.001-07:00</published><updated>2015-05-20T19:05:54.318-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="group a multi dimensional array"/><category scheme="http://www.blogger.com/atom/ns#" term="group array"/><category scheme="http://www.blogger.com/atom/ns#" term="group generic array"/><category scheme="http://www.blogger.com/atom/ns#" term="group object"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="split and group"/><title type='text'>PHP: Group array to unique value</title><content type='html'>Existing array:
&lt;div class=&quot;box&quot;&gt;&lt;pre&gt;Array
(
    [0] =&gt; Array
        (
            [id] =&gt; 12
            [name] =&gt; John
            [description] =&gt; this is a description.
        )

    [1] =&gt; Array
        (
            [id] =&gt; 57
            [name] =&gt; John
            [description] =&gt; test description.
        )

    [2] =&gt; Array
        (
            [id] =&gt; 85
            [name] =&gt; Amy
            [description] =&gt; testing 123.
        )

)
&lt;/pre&gt;&lt;/div&gt;

Apply this:
&lt;div class=&quot;box&quot;&gt;&lt;pre&gt;$result = array();

foreach ($arr as $data) {

        $name = $data[&#39;name&#39;];
        if (isset($result[$name])) {
                $result[$name][] = $data;
        } else {
                $result[$name] = array($data);
        }

}
&lt;/pre&gt;&lt;/div&gt;

Output:
&lt;div class=&quot;box&quot;&gt;&lt;pre&gt;Array
(
        [John] =&gt; Array
        (
                [0] =&gt; Array
                (
                        [id] =&gt; 12
                        [name] =&gt; John
                        [description] =&gt; this is a description.
                )

                [1] =&gt; Array
                (
                        [id] =&gt; 57
                        [name] =&gt; John
                        [description] =&gt; test description.
                )
        )
        [Amy] =&gt; Array
        (
                [0] =&gt; Array
                (
                        [id] =&gt; 85
                        [name] =&gt; Amy
                        [description] =&gt; testing 123.
                )
        )
)
&lt;/pre&gt;&lt;/div&gt;
&lt;br&gt;
Refer: &lt;a href=&quot;http://stackoverflow.com/questions/12706359/php-array-group&quot; target=&quot;_blank&quot;&gt;http://stackoverflow.com/questions/12706359/php-array-group&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://programming-tut.blogspot.com/feeds/1132937801501808900/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programming-tut.blogspot.com/2015/05/php-group-array-by-unique-value.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/1132937801501808900'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/1132937801501808900'/><link rel='alternate' type='text/html' href='http://programming-tut.blogspot.com/2015/05/php-group-array-by-unique-value.html' title='PHP: Group array to unique value'/><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><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2824414569643868576.post-5405130925898901585</id><published>2014-03-04T19:51:00.001-08:00</published><updated>2014-03-04T19:58:09.258-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="basic array"/><category scheme="http://www.blogger.com/atom/ns#" term="multi dimensional array. array unique"/><category scheme="http://www.blogger.com/atom/ns#" term="remove duplicate value"/><title type='text'>PHP: Remove duplicate value in array</title><content type='html'>Basic array:
&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$input = array(&quot;a&quot; =&amp;gt; &quot;green&quot;, &quot;red&quot;, &quot;b&quot; =&amp;gt; &quot;green&quot;, &quot;blue&quot;, &quot;red&quot;);&lt;br /&gt;
$result = &lt;font color=&quot;red&quot;&gt;array_unique&lt;/font&gt;($input);&lt;br /&gt;
print_r($result);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;&lt;br /&gt;
&lt;/div&gt;

Output:&lt;br&gt;
&lt;div class=&quot;box&quot;&gt;&lt;pre&gt;
Array
(
    [a] =&gt; green
    [0] =&gt; red
    [1] =&gt; blue
)
&lt;/pre&gt;
&lt;/div&gt;
Refer site: &lt;a href=&quot;http://sg3.php.net/array_unique&quot; target=&quot;_blank&quot;&gt;http://sg3.php.net/array_unique&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Multi-dimensional array:
&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;&lt;pre&gt;
&amp;lt;?php
$date = array(
array(&#39;month&#39; =&gt; &#39;Jan&#39;, &#39;year&#39; =&gt; &#39;2010&#39;),
array(&#39;month&#39; =&gt; &#39;Jan&#39;, &#39;year&#39; =&gt; &#39;2010&#39;),
array(&#39;month&#39; =&gt; &#39;Jan&#39;, &#39;year&#39; =&gt; &#39;2010&#39;),
array(&#39;month&#39; =&gt; &#39;Feb&#39;, &#39;year&#39; =&gt; &#39;2010&#39;),
array(&#39;month&#39; =&gt; &#39;Feb&#39;, &#39;year&#39; =&gt; &#39;2010&#39;),
array(&#39;month&#39; =&gt; &#39;Mar&#39;, &#39;year&#39; =&gt; &#39;2010&#39;),
array(&#39;month&#39; =&gt; &#39;Apr&#39;, &#39;year&#39; =&gt; &#39;2010&#39;),
array(&#39;month&#39; =&gt; &#39;Apr&#39;, &#39;year&#39; =&gt; &#39;2010&#39;)
);

print_r(&lt;font color=&quot;red&quot;&gt;super_unique&lt;/font&gt;($date,&#39;month&#39;));

function super_unique($array,$key) {

   $temp_array = array();

   foreach ($array as &amp;$v) {

       if (!isset($temp_array[$v[$key]]))

       $temp_array[$v[$key]] =&amp; $v;

   }

   $array = array_values($temp_array);

   return $array;
}
?&amp;gt;&lt;/pre&gt;
&lt;/div&gt;

Output:&lt;br&gt;
&lt;div class=&quot;box&quot;&gt;&lt;pre&gt;
Array
(
    [0] =&gt; Array
        (
            [month] =&gt; Jan
            [year] =&gt; 2010
        )

    [1] =&gt; Array
        (
            [month] =&gt; Feb
            [year] =&gt; 2010
        )

    [2] =&gt; Array
        (
            [month] =&gt; Mar
            [year] =&gt; 2010
        )

    [3] =&gt; Array
        (
            [month] =&gt; Apr
            [year] =&gt; 2010
        )

)
&lt;/pre&gt;
&lt;/div&gt;
Refer site: &lt;a href=&quot;http://stackoverflow.com/questions/307674/how-to-remove-duplicate-values-from-a-multi-dimensional-array-in-php&quot; target=&quot;_blank&quot;&gt;http://stackoverflow.com/questions/307674/how-to-remove-duplicate-values-from-a-multi-dimensional-array-in-php&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://programming-tut.blogspot.com/feeds/5405130925898901585/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programming-tut.blogspot.com/2014/03/php-array-unique-for-basicmulti.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/5405130925898901585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/5405130925898901585'/><link rel='alternate' type='text/html' href='http://programming-tut.blogspot.com/2014/03/php-array-unique-for-basicmulti.html' title='PHP: Remove duplicate value in array'/><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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2824414569643868576.post-4298112715816031912</id><published>2014-02-19T23:51:00.001-08:00</published><updated>2014-02-19T23:51:38.941-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="find facebook id"/><title type='text'>Web Tools: Find Facebook ID</title><content type='html'>For integrations of certain Facebook social plugins, like the &quot;Like&quot; button and &quot;Like box&quot;, and others, Facebook requires that you know your Facebook numeric user ID.
&lt;br /&gt;
&lt;br /&gt;

&lt;iframe frameborder=&quot;0&quot; height=&quot;350&quot; src=&quot;http://findmyfacebookid.com/&quot; width=&quot;550&quot; style=&quot;border:1px solid #bbb;&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
&lt;br /&gt;
Refer site: &lt;a href=&quot;http://findmyfacebookid.com/&quot; target=&quot;_blank&quot;&gt;http://findmyfacebookid.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://programming-tut.blogspot.com/feeds/4298112715816031912/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programming-tut.blogspot.com/2014/02/web-tools-find-facebook-id.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/4298112715816031912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/4298112715816031912'/><link rel='alternate' type='text/html' href='http://programming-tut.blogspot.com/2014/02/web-tools-find-facebook-id.html' title='Web Tools: Find Facebook ID'/><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><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2824414569643868576.post-2289557333977393539</id><published>2014-02-09T19:47:00.002-08:00</published><updated>2014-02-19T23:53:41.440-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="html5 and css3"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="Modernizr plugin"/><category scheme="http://www.blogger.com/atom/ns#" term="progress button"/><category scheme="http://www.blogger.com/atom/ns#" term="submit button"/><title type='text'>Modernizr plugin: Progress button</title><content type='html'>&lt;b&gt;Modernizr&lt;/b&gt; is a JavaScript library that detects HTML5 and CSS3 features in the user&#39;s browser.
(Browser doesn&#39;t support: IE8 and below.)
&lt;br /&gt;
&lt;br /&gt;
&lt;iframe frameborder=&quot;0&quot; height=&quot;770&quot; src=&quot;http://tympanus.net/Development/ProgressButtonStyles/&quot; width=&quot;550&quot; style=&quot;border:1px solid #bbb;&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
&lt;br /&gt;
Refer site: &lt;a href=&quot;http://tympanus.net/Development/ProgressButtonStyles/&quot; target=&quot;_blank&quot;&gt;http://tympanus.net/Development/ProgressButtonStyles/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://programming-tut.blogspot.com/feeds/2289557333977393539/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programming-tut.blogspot.com/2014/02/modernizr-plugin-progress-button.html#comment-form' title='15 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/2289557333977393539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/2289557333977393539'/><link rel='alternate' type='text/html' href='http://programming-tut.blogspot.com/2014/02/modernizr-plugin-progress-button.html' title='Modernizr plugin: Progress button'/><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><thr:total>15</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2824414569643868576.post-7495128617145812477</id><published>2014-02-09T19:41:00.000-08:00</published><updated>2014-02-19T23:53:54.273-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="full screen overlay js"/><category scheme="http://www.blogger.com/atom/ns#" term="html5 and css3"/><category scheme="http://www.blogger.com/atom/ns#" term="javasccript"/><category scheme="http://www.blogger.com/atom/ns#" term="Modernizr"/><title type='text'>Modernizr plugin: Fullscreen overlay effect</title><content type='html'>&lt;b&gt;Modernizr&lt;/b&gt; is a JavaScript library that detects HTML5 and CSS3 features in the user&#39;s browser.
(Browser doesn&#39;t support: IE8 and below.)
&lt;br /&gt;
&lt;br /&gt;
&lt;iframe frameborder=&quot;0&quot; height=&quot;770&quot; src=&quot;http://tympanus.net/Development/FullscreenOverlayStyles/index.html&quot; width=&quot;550&quot; style=&quot;border:1px solid #bbb;&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
&lt;br /&gt;
Refer site: &lt;a href=&quot;http://tympanus.net/Development/FullscreenOverlayStyles/index.html&quot; target=&quot;_blank&quot;&gt;http://tympanus.net/Development/FullscreenOverlayStyles/index.html&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://programming-tut.blogspot.com/feeds/7495128617145812477/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programming-tut.blogspot.com/2014/02/modernizr-plugin-fullscreen-overlay.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/7495128617145812477'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/7495128617145812477'/><link rel='alternate' type='text/html' href='http://programming-tut.blogspot.com/2014/02/modernizr-plugin-fullscreen-overlay.html' title='Modernizr plugin: Fullscreen overlay effect'/><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><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2824414569643868576.post-4982473918396635973</id><published>2014-02-06T02:18:00.000-08:00</published><updated>2014-02-19T23:54:11.885-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="desktop scroll"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="jquery"/><category scheme="http://www.blogger.com/atom/ns#" term="mobile scroll"/><category scheme="http://www.blogger.com/atom/ns#" term="nice scroll"/><category scheme="http://www.blogger.com/atom/ns#" term="scrolling bar js"/><title type='text'>jQuery Plugin: Better scroll on desktop and mobile device</title><content type='html'>&lt;iframe frameborder=&quot;0&quot; height=&quot;700&quot; src=&quot;http://areaaperta.com/nicescroll/demo.html&quot; width=&quot;550&quot; style=&quot;border:1px solid #bbb;&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
&lt;br /&gt;
Refer site: &lt;a href=&quot;http://areaaperta.com/nicescroll/&quot; target=&quot;_blank&quot;&gt;http://areaaperta.com/nicescroll/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://programming-tut.blogspot.com/feeds/4982473918396635973/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programming-tut.blogspot.com/2014/02/jquery-plugin-better-scroll-on-desktop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/4982473918396635973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/4982473918396635973'/><link rel='alternate' type='text/html' href='http://programming-tut.blogspot.com/2014/02/jquery-plugin-better-scroll-on-desktop.html' title='jQuery Plugin: Better scroll on desktop and mobile device'/><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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2824414569643868576.post-8404349830997877888</id><published>2014-02-04T23:56:00.000-08:00</published><updated>2014-02-04T23:56:30.681-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="current url directory"/><category scheme="http://www.blogger.com/atom/ns#" term="get url parameter in php"/><category scheme="http://www.blogger.com/atom/ns#" term="parse a URL and return its components"/><category scheme="http://www.blogger.com/atom/ns#" term="parse_url"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="url function"/><category scheme="http://www.blogger.com/atom/ns#" term="url path"/><title type='text'>PHP: Get Url Components</title><content type='html'>&lt;b&gt;Example 1: Code&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$url = &#39;http://me:you@sub.site.org:29000/pear/validate.html?happy=me&amp;amp;sad=you#url&#39;;&lt;br /&gt;
&lt;br /&gt;
$output = parse_url($url);&lt;br /&gt;
echo &#39;&amp;lt;pre&amp;gt;&#39; . print_r(parse_url($url), true) . &#39;&amp;lt;/pre&amp;gt;&#39;;&lt;br /&gt;
echo &#39;Path: &#39;.$output[&#39;path&#39;];&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Example 1: Output&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;
&lt;pre&gt;Array
(
[scheme] =&amp;gt; http
[host] =&amp;gt; sub.site.org
[port] =&amp;gt; 29000
[user] =&amp;gt; me
[pass] =&amp;gt; you
[path] =&amp;gt; /pear/validate.html
[query] =&amp;gt; happy=me&amp;amp;sad=you
[fragment] =&amp;gt; url
)
Path: /pear/validate.html
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Example 2: &lt;/b&gt;&lt;br /&gt;
To retrieve just a specific URL component as a string:&lt;br /&gt;
PHP_URL_SCHEME, PHP_URL_HOST, PHP_URL_PORT, PHP_URL_USER, PHP_URL_PASS, PHP_URL_PATH, PHP_URL_QUERY or PHP_URL_FRAGMENT&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Code&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$url = &#39;http://me:you@sub.site.org:29000/pear/validate.html?happy=me&amp;amp;sad=you#url&#39;;&lt;br /&gt;
&lt;br /&gt;
echo parse_url($url, PHP_URL_PATH);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Output&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;
&lt;br /&gt;
/pear/validate.html&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Example 3: Code&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
function parseUrl ( $url )&lt;br /&gt;
{&lt;br /&gt;
$r  = &#39;!(?:(\w+)://)?(?:(\w+)\:(\w+)@)?([^/:]+)?&#39;;&lt;br /&gt;
$r .= &#39;(?:\:(\d*))?([^#?]+)?(?:\?([^#]+))?(?:#(.+$))?!i&#39;;&lt;br /&gt;
&lt;br /&gt;
preg_match ( $r, $url, $out );&lt;br /&gt;
&lt;br /&gt;
return $out;&lt;br /&gt;
}&lt;br /&gt;
$output = parseUrl($url);&lt;br /&gt;
echo &#39;&amp;lt;pre&amp;gt;&#39; . print_r($output, true) . &#39;&amp;lt;/pre&amp;gt;&#39;;&lt;br /&gt;
echo &#39;Path: &#39;.$output[6];&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Example 3: Output&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;
&lt;pre&gt;Array
(
[0] =&amp;gt; http://me:you@sub.site.org:29000/pear/validate.html?happy=me&amp;amp;sad=you#url
[1] =&amp;gt; http
[2] =&amp;gt; me
[3] =&amp;gt; you
[4] =&amp;gt; sub.site.org
[5] =&amp;gt; 29000
[6] =&amp;gt; /pear/validate.html
[7] =&amp;gt; happy=me&amp;amp;sad=you
[8] =&amp;gt; url
)
Path: /pear/validate.html
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Example 3: Explain output&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;
&lt;br /&gt;
$output[0] = full url&lt;br /&gt;
$output[1] = scheme or &#39;&#39; if no scheme was found&lt;br /&gt;
$output[2] = username or &#39;&#39; if no auth username was found&lt;br /&gt;
$output[3] = password or &#39;&#39; if no auth password was found&lt;br /&gt;
$output[4] = domain name or &#39;&#39; if no domain name was found&lt;br /&gt;
$output[5] = port number or &#39;&#39; if no port number was found&lt;br /&gt;
$output[6] = path or &#39;&#39; if no path was found&lt;br /&gt;
$output[7] = query or &#39;&#39; if no query was found&lt;br /&gt;
$output[8] = fragment or &#39;&#39; if no fragment was found&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Example 4: Code&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$url = &#39;http://me:you@sub.site.org:29000/pear/validate.html?happy=me&amp;amp;sad=you#url&#39;;&lt;br /&gt;
&lt;br /&gt;
echo &#39;SERVER_PROTOCOL: &#39;.$_SERVER[&#39;SERVER_PROTOCOL&#39;];&lt;br /&gt;
echo &#39;SERVER_NAME: &#39;.$_SERVER[&#39;SERVER_NAME&#39;];&lt;br /&gt;
echo &#39;SERVER_PORT: &#39;.$_SERVER[&#39;SERVER_PORT&#39;];&lt;br /&gt;
echo &#39;PHP_SELF: &#39;.$_SERVER[&#39;PHP_SELF&#39;];&lt;br /&gt;
echo &#39;REQUEST_URI: &#39;.$_SERVER[&#39;REQUEST_URI&#39;];&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Example 4: Output&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;
&lt;br /&gt;
SERVER_PROTOCOL: HTTP/1.1 &lt;br /&gt;
SERVER_NAME: sub.site.org&lt;br /&gt;
SERVER_PORT: 29000&lt;br /&gt;
PHP_SELF: /pear/validate.html&lt;br /&gt;
REQUEST_URI: /pear/validate.html?happy=me&amp;amp;sad=you#url&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Example 5: Code&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;
&lt;pre&gt;function getcurrentpath()
{   $curPageURL = &quot;&quot;;
    if ($_SERVER[&quot;HTTPS&quot;] != &quot;on&quot;)
            $curPageURL .= &quot;http://&quot;;
     else
        $curPageURL .= &quot;https://&quot; ;
    if ($_SERVER[&quot;SERVER_PORT&quot;] == &quot;80&quot;)
        $curPageURL .= $_SERVER[&quot;SERVER_NAME&quot;].$_SERVER[&quot;REQUEST_URI&quot;];
     else
        $curPageURL .= $_SERVER[&quot;SERVER_NAME&quot;].&quot;:&quot;.$_SERVER[&quot;SERVER_PORT&quot;].$_SERVER[&quot;REQUEST_URI&quot;];
        $count = strlen(basename($curPageURL));
        $path = substr($curPageURL,0, -$count);
    return $path ;
}
 
echo getcurrentpath();
&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Example 5: Output&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;
&lt;br /&gt;
If current URL is: &lt;br /&gt;
http://www.abc.com/file/demo1/contact.html &lt;br /&gt;&lt;br /&gt;
Output will be: &lt;br /&gt;http://www.abc.com/file/demo1/&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
Refer: &lt;a href=&quot;http://blog.vivekv.com/php-get-the-current-url-path.html&quot; target=&quot;_blank&quot;&gt;http://blog.vivekv.com/php-get-the-current-url-path.html&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://programming-tut.blogspot.com/feeds/8404349830997877888/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programming-tut.blogspot.com/2010/12/php-get-url-components.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/8404349830997877888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/8404349830997877888'/><link rel='alternate' type='text/html' href='http://programming-tut.blogspot.com/2010/12/php-get-url-components.html' title='PHP: Get Url Components'/><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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2824414569643868576.post-2855832014655472769</id><published>2014-01-02T01:23:00.000-08:00</published><updated>2014-02-09T19:54:15.569-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mobile device resolution"/><title type='text'>Web Tools: Mobile + Tablet Device Dimensions</title><content type='html'>&lt;iframe frameborder=&quot;0&quot; height=&quot;770&quot; src=&quot;http://stefhatcher.com/projects/device-dimensions/&quot; width=&quot;550&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
&lt;br /&gt;
Refer site: &lt;a href=&quot;http://stefhatcher.com/projects/device-dimensions/&quot; target=&quot;_blank&quot;&gt;http://stefhatcher.com/projects/device-dimensions/&lt;/a&gt;
</content><link rel='replies' type='application/atom+xml' href='http://programming-tut.blogspot.com/feeds/2855832014655472769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programming-tut.blogspot.com/2014/01/mobile-tablet-device-dimensions_2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/2855832014655472769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/2855832014655472769'/><link rel='alternate' type='text/html' href='http://programming-tut.blogspot.com/2014/01/mobile-tablet-device-dimensions_2.html' title='Web Tools: Mobile + Tablet Device Dimensions'/><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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2824414569643868576.post-6958920643911300053</id><published>2013-07-22T19:59:00.001-07:00</published><updated>2013-07-22T20:06:33.520-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="center image in a container"/><category scheme="http://www.blogger.com/atom/ns#" term="crop and set image position"/><category scheme="http://www.blogger.com/atom/ns#" term="crop image"/><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><category scheme="http://www.blogger.com/atom/ns#" term="css crop"/><category scheme="http://www.blogger.com/atom/ns#" term="cut and centered image"/><category scheme="http://www.blogger.com/atom/ns#" term="cut image"/><category scheme="http://www.blogger.com/atom/ns#" term="different size ratio"/><category scheme="http://www.blogger.com/atom/ns#" term="hide overflow"/><category scheme="http://www.blogger.com/atom/ns#" term="HTML"/><category scheme="http://www.blogger.com/atom/ns#" term="move image around within a div"/><category scheme="http://www.blogger.com/atom/ns#" term="resize image"/><title type='text'>CSS: Crop and resize image to certain ratio</title><content type='html'>Edit &lt;b&gt;margin&lt;/b&gt;&amp;nbsp;and move the image around within the &lt;b&gt;&amp;lt;div&amp;gt;&lt;/b&gt; container.

&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;
&lt;pre&gt;&amp;lt;style&amp;gt;
.crop {
    width: 200px;
    height: 150px;
    overflow: hidden;
}

.crop img {
    max-width: 400px;
    height: auto;
    margin: -75px 0 0 -100px;
}
&amp;lt;/style&amp;gt;&lt;/pre&gt;
&lt;pre&gt;&amp;lt;div class=&quot;crop&quot;&amp;gt;
    &amp;lt;img src=&quot;http://img1.jurko.net/wall/paper/donald_duck_4.jpg&quot; /&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;a href=&quot;http://jsfiddle.net/zWDUK/&quot; target=&quot;_blank&quot;&gt;Demo&lt;/a&gt;&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
Refer:&lt;br /&gt;
&lt;a href=&quot;http://stackoverflow.com/questions/493296/css-display-an-image-resized-and-cropped&quot; target=&quot;_blank&quot;&gt;http://stackoverflow.com/questions/493296/css-display-an-image-resized-and-cropped&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://dabblet.com/gist/4711695&quot; target=&quot;_blank&quot;&gt;http://dabblet.com/gist/4711695&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://programming-tut.blogspot.com/feeds/6958920643911300053/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programming-tut.blogspot.com/2013/07/css-crop-and-resize-image-to-certain.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/6958920643911300053'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/6958920643911300053'/><link rel='alternate' type='text/html' href='http://programming-tut.blogspot.com/2013/07/css-crop-and-resize-image-to-certain.html' title='CSS: Crop and resize image to certain ratio'/><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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2824414569643868576.post-6488297570808100434</id><published>2013-01-07T07:14:00.000-08:00</published><updated>2013-01-07T07:23:23.003-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="array"/><category scheme="http://www.blogger.com/atom/ns#" term="array intersect"/><category scheme="http://www.blogger.com/atom/ns#" term="intersection"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="remove specifc items or elements in array"/><category scheme="http://www.blogger.com/atom/ns#" term="unset"/><title type='text'>PHP: Remove intersect element(s) in array</title><content type='html'>&lt;div class=&quot;box&quot;&gt;
&lt;pre&gt;$array1 = array(&#39;abc&#39;, &#39;efg&#39;, &#39;hij&#39;, &#39;klm&#39;, &#39;nop&#39;, &#39;qrs&#39;);
$array2 = array(&#39;tuv&#39;, &#39;abc&#39;, &#39;wxyz&#39;, &#39;qrs&#39;, &#39;hij&#39;);

&lt;span style=&quot;color: #38761d;&quot;&gt;
// Find intersection&lt;/span&gt;
$intersection = array_intersect($array1, $array2);&amp;nbsp;

echo &#39;&amp;lt;pre&amp;gt;&#39;.print_r($intersection, true).&#39;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;/pre&amp;gt;&#39;;&lt;/span&gt;
/* output: 
Array
(
    [0] =&amp;gt; abc
    [2] =&amp;gt; hij
    [5] =&amp;gt; qrs
)
*/&lt;/span&gt;

&lt;span style=&quot;color: #38761d;&quot;&gt;// Extract&lt;/span&gt;
if(!empty($intersection)){

&amp;nbsp;&amp;nbsp; foreach ($intersection as $key =&amp;gt; $value) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; unset($$array1[$key]);
&amp;nbsp;&amp;nbsp; }

}

echo &#39;&amp;lt;pre&amp;gt;&#39;.print_r($array1, true).&#39;&amp;lt;/pre&amp;gt;&#39;;
&lt;span style=&quot;color: #38761d;&quot;&gt;/* output: 
Array
(
    [1] =&amp;gt; efg
    [3] =&amp;gt; klm
    [4] =&amp;gt; nop
)
*/&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
Refer site:&lt;br /&gt;
Unset - &lt;a href=&quot;http://sg2.php.net/manual/en/function.unset.php&quot; target=&quot;_blank&quot;&gt;http://sg2.php.net/manual/en/function.unset.php&lt;/a&gt; &lt;br /&gt;
Array intersect - &lt;a href=&quot;http://php.net/manual/en/function.array-intersect.php&quot; target=&quot;_blank&quot;&gt;http://php.net/manual/en/function.array-intersect.php&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://programming-tut.blogspot.com/feeds/6488297570808100434/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programming-tut.blogspot.com/2013/01/php-remove-intersect-elements-in-array.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/6488297570808100434'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/6488297570808100434'/><link rel='alternate' type='text/html' href='http://programming-tut.blogspot.com/2013/01/php-remove-intersect-elements-in-array.html' title='PHP: Remove intersect element(s) in array'/><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><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2824414569643868576.post-8469037678753161060</id><published>2012-11-01T23:51:00.000-07:00</published><updated>2012-11-01T23:56:42.347-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="compress"/><category scheme="http://www.blogger.com/atom/ns#" term="estimate"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="uncompressed"/><title type='text'>Web Tools: Uncompressed JavaScript file Generator</title><content type='html'>&lt;iframe frameborder=&quot;0&quot; height=&quot;730&quot; src=&quot;http://jsbeautifier.org/&quot; width=&quot;550&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
&lt;br /&gt;
Refer site: &lt;a href=&quot;http://jsbeautifier.org/&quot; target=&quot;_blank&quot;&gt;http://jsbeautifier.org/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://programming-tut.blogspot.com/feeds/8469037678753161060/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programming-tut.blogspot.com/2012/11/javascript-uncompressed-js-file.html#comment-form' title='58 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/8469037678753161060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/8469037678753161060'/><link rel='alternate' type='text/html' href='http://programming-tut.blogspot.com/2012/11/javascript-uncompressed-js-file.html' title='Web Tools: Uncompressed JavaScript file Generator'/><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><thr:total>58</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2824414569643868576.post-228041513650058919</id><published>2012-10-09T23:20:00.000-07:00</published><updated>2012-10-10T00:05:14.393-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="clear float"/><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><category scheme="http://www.blogger.com/atom/ns#" term="haslayout"/><category scheme="http://www.blogger.com/atom/ns#" term="overflow hidden"/><title type='text'>CSS: hasLayout hack</title><content type='html'>Clear float using &quot;clear:both;&quot;

&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;
&lt;pre&gt;&amp;lt;style&amp;gt;
ul {
 list-style: none;
}

ul li {
 float:left; 
 width:100px; 
 border:1px solid #ccc; 
 margin-right:5px; 
 text-align:center;
}

.clear {
 clear:both;
}

.flower {
 color:red;
 font-weight:bold;
}
&amp;lt;/style&amp;gt;

&amp;lt;ul&amp;gt;
&amp;lt;li&amp;gt;coffee&amp;lt;/li&amp;gt;
&amp;lt;li&amp;gt;tea&amp;lt;/li&amp;gt;
&amp;lt;li&amp;gt;water&amp;lt;/li&amp;gt;
&amp;lt;/ul&amp;gt;

&amp;lt;div class=&quot;clear&quot;&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;div class=&quot;flower&quot;&amp;gt;rose&amp;lt;/div&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
Add either width or height with a overflow hidden, it should cleared the float, without adding &quot;clear:both;&quot;

&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;
&lt;pre&gt;&amp;lt;style&amp;gt;
ul {
 list-style: none; 
 &lt;b&gt;width:100%; 
 overflow: hidden;&lt;/b&gt;
}

ul li {
 float:left; 
 width:100px; 
 border:1px solid #ccc; 
 margin-right:5px; 
 text-align:center;
}

&lt;span style=&quot;text-decoration: line-through;&quot;&gt;.clear {
 clear:both;
}&lt;/span&gt;

.flower {
 color:red; 
 font-weight:bold;
}
&amp;lt;/style&amp;gt;

&amp;lt;ul&amp;gt;
&amp;lt;li&amp;gt;coffee&amp;lt;/li&amp;gt;
&amp;lt;li&amp;gt;tea&amp;lt;/li&amp;gt;
&amp;lt;li&amp;gt;water&amp;lt;/li&amp;gt;
&amp;lt;/ul&amp;gt;

&lt;span style=&quot;text-decoration: line-through;&quot;&gt;&amp;lt;div class=&quot;clear&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&amp;lt;div class=&quot;flower&quot;&amp;gt;rose&amp;lt;/div&amp;gt;
&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;br /&gt;
Refer site: &lt;a href=&quot;http://chatter.customdesigns.com.au/?p=123&quot; target=&quot;_blank&quot;&gt;http://chatter.customdesigns.com.au/?p=123&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://programming-tut.blogspot.com/feeds/228041513650058919/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programming-tut.blogspot.com/2012/10/css-haslayout-hack.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/228041513650058919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/228041513650058919'/><link rel='alternate' type='text/html' href='http://programming-tut.blogspot.com/2012/10/css-haslayout-hack.html' title='CSS: hasLayout hack'/><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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2824414569643868576.post-2094374377675641326</id><published>2012-09-14T01:37:00.001-07:00</published><updated>2012-09-14T01:37:52.727-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="associate array"/><category scheme="http://www.blogger.com/atom/ns#" term="create array in js"/><category scheme="http://www.blogger.com/atom/ns#" term="create objects in js"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="print array in loop using js"/><category scheme="http://www.blogger.com/atom/ns#" term="print objects in loop using js"/><category scheme="http://www.blogger.com/atom/ns#" term="total size of array"/><category scheme="http://www.blogger.com/atom/ns#" term="total size of objects"/><title type='text'>JavaScript: Array vs. Objects</title><content type='html'>&lt;table border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;th&gt;Regular Array&lt;/th&gt;
&lt;th&gt;Object/Associate Array&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;// regular array (add an optional integer argument to control array&#39;s size)&lt;/span&gt;&lt;br /&gt;
var myCars=new Array();&lt;br /&gt;
myCars[0]=&quot;Saab&quot;;&lt;br /&gt;
myCars[1]=&quot;Volvo&quot;;&lt;br /&gt;
myCars[2]=&quot;BMW&quot;;
&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;//Create a direct instance of an object&lt;/span&gt;&lt;br /&gt;
personObj=new Object();&lt;br /&gt;
personObj.firstname=&quot;John&quot;;&lt;br /&gt;
personObj.lastname=&quot;Doe&quot;;&lt;br /&gt;
personObj.age=50;&lt;br /&gt;
personObj.eyecolor=&quot;blue&quot;;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;// create literal array&lt;/span&gt;&lt;br /&gt;
var myCars=[&quot;Saab&quot;,&quot;Volvo&quot;,&quot;BMW&quot;];
&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;//create alternative syntax (using object literals):&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
personObj = {firstname:&quot;John&quot;, lastname:&quot;Doe&quot;, age:50, eyecolor:&quot;blue&quot;};
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;// find total length of array&lt;/span&gt;&lt;br /&gt;
document.write(myCars.length);&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;// output: 3
&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;Object.size = function(obj) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp;var size = 0, key;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;for (key in obj) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;if (obj.hasOwnProperty(key)) size++;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;}&amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp;return size;&lt;br /&gt;
};&lt;br /&gt;
document.write(Object.size(personObj));&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;// output: 4
&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;// print individual element of array&lt;/span&gt;&lt;br /&gt;
document.write(myCars[0]);&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;// output: Saab&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;document.write(personObj[&#39;firstname&#39;]);&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;// output: John&lt;/span&gt;&lt;br /&gt;
document.write(personObj.firstname);&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;// output: John
&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;// print all elements of array&lt;/span&gt;&lt;br /&gt;
for(var x = 0; x &amp;lt; myCars.length; x++){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;document.write(myCars[x] + &quot; &quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;// output: Saab Volvo BMW
&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;var x;&lt;br /&gt;
for (x in personObj)
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;document.write(personObj[x] + &quot; &quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;// output: John Doe 50 blue
&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
Refer site:
&lt;br /&gt;
&lt;a href=&quot;http://www.w3schools.com/js/js_obj_array.asp&quot;&gt;http://www.w3schools.com/js/js_obj_array.asp&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.w3schools.com/js/js_objects.asp&quot;&gt;http://www.w3schools.com/js/js_objects.asp&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://programming-tut.blogspot.com/feeds/2094374377675641326/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programming-tut.blogspot.com/2012/09/javascript-array-vs-objects.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/2094374377675641326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/2094374377675641326'/><link rel='alternate' type='text/html' href='http://programming-tut.blogspot.com/2012/09/javascript-array-vs-objects.html' title='JavaScript: Array vs. Objects'/><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><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2824414569643868576.post-4658642165709712022</id><published>2012-05-02T01:23:00.000-07:00</published><updated>2012-05-02T01:27:49.776-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="js"/><category scheme="http://www.blogger.com/atom/ns#" term="print splitted string using loop"/><category scheme="http://www.blogger.com/atom/ns#" term="split string and store into array"/><category scheme="http://www.blogger.com/atom/ns#" term="split string in js"/><title type='text'>JavaScript: Split a string and store into array</title><content type='html'>&lt;b&gt;Example 1:&lt;/b&gt;
&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;
&lt;pre&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;
var myString = &quot;123456789&quot;;
var mySplitResult = myString.split(&quot;5&quot;);
document.write(&quot;The first element is &quot; + mySplitResult[0]); 
document.write(&quot;
 The second element is  &quot; + mySplitResult[1]); 
&amp;lt;/script&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;b&gt;Output 1:&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;
&lt;pre&gt;The first element is 1234
The second element is 6789&lt;/pre&gt;
&lt;/div&gt;
&lt;b&gt;Example 2:&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;
&lt;pre&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;
 var cars = &#39;bmw,audi,honda,chrysler&#39;;
 var split_cars = cars.split(&#39;,&#39;);
 for (var i = 0; i &amp;lt; split_cars.length; i++) {
  document.write(split_cars[i] + &#39;
&#39;); &lt;span style=&quot;color: green;&quot;&gt;// print all words&lt;/span&gt;
 }
&amp;lt;/script&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;b&gt;Output 2:&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;
&lt;pre&gt;bmw
audi
honda
chrysler&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
Refer site:&lt;br /&gt;
&lt;a alt=&quot;split string js&quot; href=&quot;http://www.w3schools.com/jsref/jsref_split.asp&quot; target=&quot;_blank&quot;&gt;http://www.w3schools.com/jsref/jsref_split.asp&lt;/a&gt;&lt;br /&gt;
&lt;a alt=&quot;split string js&quot; href=&quot;http://www.alexxoid.com/blog/dev/javascript-dev/how-to-explode-the-string-in-javascript.html&quot; target=&quot;_blank&quot;&gt;http://www.alexxoid.com/blog/dev/javascript-dev/how-to-explode-the-string-in-javascript.html&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://programming-tut.blogspot.com/feeds/4658642165709712022/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programming-tut.blogspot.com/2012/05/javascript-split-string-by-string.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/4658642165709712022'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/4658642165709712022'/><link rel='alternate' type='text/html' href='http://programming-tut.blogspot.com/2012/05/javascript-split-string-by-string.html' title='JavaScript: Split a string and store into array'/><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><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2824414569643868576.post-4518034003770584719</id><published>2012-03-26T14:37:00.000-07:00</published><updated>2012-03-26T00:51:35.727-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="array in php"/><category scheme="http://www.blogger.com/atom/ns#" term="explode in php"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="preg_split in php"/><category scheme="http://www.blogger.com/atom/ns#" term="PREG_SPLIT_OFFSET_CAPTURE"/><category scheme="http://www.blogger.com/atom/ns#" term="split in php"/><category scheme="http://www.blogger.com/atom/ns#" term="split string using array in php"/><category scheme="http://www.blogger.com/atom/ns#" term="substr in php"/><title type='text'>PHP: Split string using array</title><content type='html'>&lt;b&gt;Example 1:&lt;/b&gt;
&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;
&lt;pre&gt;&amp;lt;?php
 $str = &quot;How are you doing today?&quot;;
 $split_str = explode(&quot; &quot;, $str);
 echo &#39;&amp;lt;pre&amp;gt;&#39;.print_r($split_str, true).&#39;&amp;lt;/pre&amp;gt;&#39;; &lt;span style=&quot;color: green;&quot;&gt;// Output 1&lt;/span&gt;
 echo $split_str[1]; &lt;span style=&quot;color: green;&quot;&gt;// Output 2&lt;/span&gt;
?&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;b&gt;Output 1&lt;/b&gt;
&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;
&lt;pre&gt;Array
(
    [0] =&amp;gt; How
    [1] =&amp;gt; are
    [2] =&amp;gt; you
    [3] =&amp;gt; doing
    [4] =&amp;gt; today?
)&lt;/pre&gt;
&lt;/div&gt;
&lt;b&gt;Output 2&lt;/b&gt;
&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;
&lt;pre&gt;are&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Example 2:&lt;/b&gt;
&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;
&lt;pre&gt;&amp;lt;?php
$string = &#39;&amp;lt;span style=&quot;font-weight: bold;&quot;&amp;gt;Lorem ipsum dolor sit amet:-&amp;lt;/span&amp;gt;&amp;lt;br&amp;gt;(1) consectetur adipisicing elit &amp;lt;br&amp;gt;(2) sed do eiusmod tempor &amp;lt;br&amp;gt;(3) incididunt ut labore et &amp;lt;br&amp;gt;(4) dolore magna aliqua&#39;;
echo &#39;&amp;lt;p&amp;gt;&#39;.$string.&#39;&amp;lt;/p&amp;gt;&#39;; &lt;span style=&quot;color: green;&quot;&gt;// Output 3&lt;/span&gt;

$chars = preg_split(&#39;/&amp;lt;br&amp;gt;/&#39;, $string, -1, PREG_SPLIT_OFFSET_CAPTURE);
$third_br_position = $chars[3][1];  
$description = substr($string, 0, $third_br_position);

echo &#39;&amp;lt;p&amp;gt;&#39;.$description.&#39;&amp;lt;/p&amp;gt;&#39;; &lt;span style=&quot;color: green;&quot;&gt;// Output 4&lt;/span&gt;
?&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;b&gt;Output 3&lt;/b&gt;
&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;
&lt;pre&gt;&lt;b&gt;Lorem ipsum dolor sit amet:-&lt;/b&gt;
(1) consectetur adipisicing elit 
(2) sed do eiusmod tempor 
(3) incididunt ut labore et 
(4) dolore magna aliqua&lt;/pre&gt;
&lt;/div&gt;
&lt;b&gt;Output 4&lt;/b&gt;
&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;
&lt;pre&gt;&lt;b&gt;Lorem ipsum dolor sit amet:-&lt;/b&gt;
(1) consectetur adipisicing elit 
(2) sed do eiusmod tempor &lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
Refer site:&lt;br /&gt;
explode() - &lt;a alt=&quot;split string php&quot; href=&quot;http://php.net/manual/en/function.explode.php&quot; target=&quot;_blank&quot;&gt;http://php.net/manual/en/function.explode.php&lt;/a&gt;&lt;br /&gt;
preg_split() - &lt;a alt=&quot;split string php&quot; href=&quot;http://php.net/manual/en/function.preg-split.php&quot; target=&quot;_blank&quot;&gt;http://php.net/manual/en/function.preg-split.php&lt;/a&gt;&lt;br /&gt;
&lt;a alt=&quot;split string php&quot; href=&quot;http://www.java-samples.com/showtutorial.php?tutorialid=938&quot; target=&quot;_blank&quot;&gt;http://www.java-samples.com/showtutorial.php?tutorialid=938&lt;/a&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://programming-tut.blogspot.com/feeds/4518034003770584719/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programming-tut.blogspot.com/2011/11/php-split-string-by-string-using-array.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/4518034003770584719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/4518034003770584719'/><link rel='alternate' type='text/html' href='http://programming-tut.blogspot.com/2011/11/php-split-string-by-string-using-array.html' title='PHP: Split string using array'/><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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2824414569643868576.post-6152127438167025194</id><published>2012-03-19T18:25:00.000-07:00</published><updated>2012-05-27T19:53:47.328-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Automatically Fill in Email Subject html"/><category scheme="http://www.blogger.com/atom/ns#" term="email open new window in JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="HTML"/><category scheme="http://www.blogger.com/atom/ns#" term="mailto in html"/><category scheme="http://www.blogger.com/atom/ns#" term="submit mailto using html form"/><title type='text'>HTML: Automatically Fill in Email Subject (mailto)</title><content type='html'>&lt;b&gt;Example 1: &amp;lt;a&gt; tag&lt;/b&gt;
&lt;div class=&quot;box&quot;&gt;&lt;pre&gt;
&amp;lt;a href=&quot;mailto:&lt;b&gt;emailname@yourdomain.com&lt;/b&gt;?subject=&lt;b&gt;Subject You Selected&lt;/b&gt;&amp;body=&lt;b&gt;Body content&lt;/b&gt;&quot;&gt;The text of your link&amp;lt;/a&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;b&gt;Example 2: open new window in JavaScript&lt;/b&gt;
&lt;div class=&quot;box&quot;&gt;&lt;pre&gt;
window.open(&#39;mailto:&lt;b&gt;emailname@yourdomain.com&lt;/b&gt;?subject=&lt;b&gt;Subject You Selected&lt;/b&gt;&amp;body=&lt;b&gt;Body content&lt;/b&gt;&#39;);
&lt;/pre&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;b&gt;Example 3: &amp;lt;form&gt; tag&lt;/b&gt; | (&lt;a href=&quot;http://www.javascript-coder.com/files/email-form/javascript-email-form-example1.html&quot;&gt;Demo&lt;/a&gt;)
&lt;div class=&quot;box&quot;&gt;&lt;pre&gt;
&amp;lt;form action=&quot;&lt;b&gt;mailto:you@yourdmainhere.com&lt;/b&gt;&quot; method=&quot;post&quot; enctype=&quot;text/plain&quot;&gt;
FirstName:&amp;lt;input type=&quot;text&quot; name=&quot;FirstName&quot;&gt;
Email:&amp;lt;input type=&quot;text&quot; name=&quot;Email&quot;&gt;
&amp;lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Submit&quot;&gt;
&amp;lt;/form&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br&gt;
Refer site: &lt;br&gt;
&lt;a href=&quot;http://www.htmlbasictutor.ca/email-subject.htm&quot; alt=&quot;Automatically Fill in Email Subject&quot; target=&quot;_blank&quot;&gt;http://www.htmlbasictutor.ca/email-subject.htm&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://www.javascript-coder.com/javascript-form/javascript-email-form.phtml&quot; target=&quot;_blank&quot;&gt;http://www.javascript-coder.com/javascript-form/javascript-email-form.phtml&lt;/a&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://programming-tut.blogspot.com/feeds/6152127438167025194/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programming-tut.blogspot.com/2011/11/html-automatically-fill-in-email.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/6152127438167025194'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/6152127438167025194'/><link rel='alternate' type='text/html' href='http://programming-tut.blogspot.com/2011/11/html-automatically-fill-in-email.html' title='HTML: Automatically Fill in Email Subject (mailto)'/><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><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2824414569643868576.post-6867961384525277523</id><published>2012-01-08T02:30:00.000-08:00</published><updated>2012-05-24T23:25:56.214-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="always align to left css"/><category scheme="http://www.blogger.com/atom/ns#" term="always align to right css"/><category scheme="http://www.blogger.com/atom/ns#" term="always stick to right css"/><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><category scheme="http://www.blogger.com/atom/ns#" term="HTML"/><category scheme="http://www.blogger.com/atom/ns#" term="image always stick to left css"/><category scheme="http://www.blogger.com/atom/ns#" term="positioning css"/><title type='text'>CSS: Image always stick to left/right</title><content type='html'>File: &lt;b&gt;styles.css&lt;/b&gt;
&lt;div class=&quot;box&quot;&gt;&lt;pre&gt;&amp;lt;style&gt;
.btn_right {
 width: 50px; 
 height: 112px; 
 position: fixed; 
 right: 0pt; 
 top: 62px; 
 margin: 0px; 
 display: block;
}

.btn_left {
 width: 50px; 
 height: 112px; 
 position: fixed; 
 left: 0px; 
 top: 50%; 
 margin: -45px 0px 0px; 
 cursor: pointer; 
 display: block;
}

.btn_close_right {
 display: inline-block; 
 margin-left:30px; 
 width: 20px; 
 height: 18px; 
 background: url(&#39;close_icon.png&#39;) 0px 0px no-repeat; 
 cursor:pointer;
}
&amp;lt;/style&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
File: &lt;b&gt;buttons.html&lt;/b&gt;
&lt;div class=&quot;box&quot;&gt;&lt;pre&gt;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;styles.css&quot; /&gt;
&lt;font color=&quot;green&quot;&gt;&amp;lt;!-- button always stick right --&gt;&lt;/font&gt;
&amp;lt;div class=&quot;btn_right&quot;&gt;
 &amp;lt;img style=&quot;cursor:pointer;&quot; src=&quot;btn_right.png&quot;&gt;
 &amp;lt;br&gt;
 &amp;lt;div class=&quot;btn_close_right&quot;&gt;&amp;lt;/div&gt;
&amp;lt;/div&gt;

&lt;font color=&quot;green&quot;&gt;&amp;lt;!-- button always stick left --&gt;&lt;/font&gt;
&amp;lt;div class=&quot;btn_left&quot;&gt;
 &amp;lt;img src=&quot;btn_left.png&quot;&gt;
 &amp;lt;br&gt;
 &amp;lt;img src=&quot;close_icon.png&quot;&gt;
&amp;lt;/div&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
Positioning Tutorial: &lt;a href=&quot;http://www.barelyfitz.com/screencast/html-training/css/positioning/&quot;&gt;http://www.barelyfitz.com/screencast/html-training/css/positioning/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://programming-tut.blogspot.com/feeds/6867961384525277523/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programming-tut.blogspot.com/2011/12/css-html-image-always-stick-to.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/6867961384525277523'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/6867961384525277523'/><link rel='alternate' type='text/html' href='http://programming-tut.blogspot.com/2011/12/css-html-image-always-stick-to.html' title='CSS: Image always stick to left/right'/><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><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2824414569643868576.post-7098708791562991739</id><published>2012-01-02T19:52:00.000-08:00</published><updated>2012-09-14T03:13:17.021-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Online PHP script tester"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="tester"/><title type='text'>Web Tools: Online PHP script tester</title><content type='html'>&lt;iframe frameborder=&quot;0&quot; height=&quot;950&quot; src=&quot;http://codepad.viper-7.com/br1yF5&quot; scrolling=&quot;no&quot; style=&quot;border: 1px solid #eee;&quot; width=&quot;100%&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
Refer: &lt;a href=&quot;http://codepad.viper-7.com/br1yF5&quot; target=&quot;_blank&quot;&gt;http://codepad.viper-7.com/br1yF5&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://programming-tut.blogspot.com/feeds/7098708791562991739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programming-tut.blogspot.com/2012/05/web-tools-online-php-script-tester.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/7098708791562991739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/7098708791562991739'/><link rel='alternate' type='text/html' href='http://programming-tut.blogspot.com/2012/05/web-tools-online-php-script-tester.html' title='Web Tools: Online PHP script tester'/><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><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2824414569643868576.post-514639619519333349</id><published>2011-12-19T19:10:00.000-08:00</published><updated>2015-05-20T19:18:35.561-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="pagination php"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="simple pagination"/><title type='text'>PHP: Simple Pagination in MySQL I</title><content type='html'>File: &lt;b&gt;booklist.php&lt;/b&gt;
&lt;div class=&quot;box&quot;&gt;&lt;pre&gt;&amp;lt;?php
&lt;font color=&quot;green&quot;&gt;// booklist.php?page=10&lt;/font&gt;
$start_page = (empty($_GET[&#39;page&#39;])) ? &#39;0&#39; : $_GET[&#39;page&#39;];

function pagination(){
 $sql = mysql_query(&quot;SELECT * FROM books ORDER BY id&quot;); 
 $result = mysql_num_rows($sql);
 $counter = $result / 10;
 $paginate = substr($counter, 0, strpos($counter, &#39;.&#39;));

 for($i = 0; $i &amp;lt;= $paginate; $i++){
  $pages = $i * 10;
  $pg_num = $i + 1;
  echo &#39;&amp;lt;a href=&quot;booklist.php?page=&#39;.$pages.&#39;&quot;&gt;&#39;.$pg_num.&#39;&amp;lt;/a&gt; &#39;;
 }

 return &#39;&amp;lt;br /&gt;Total: &#39;.$result;
}

$sql = mysql_query(&quot;SELECT * FROM books ORDER BY id LIMIT $start_page, 10&quot;);

&lt;font color=&quot;green&quot;&gt;// database fields&lt;/font&gt;
$fields = &quot;id,title,description,created&quot;;
$fields_array = explode(&#39;,&#39;,$fields);
 
&lt;font color=&quot;green&quot;&gt;// display&lt;/font&gt;
echo &#39;&amp;lt;table border=&quot;1&quot;&gt;&#39;;

echo &#39;&amp;lt;tr&gt;&#39;;
foreach($fields_array as $key=&gt;$field){   
 echo &#39;&amp;lt;th&gt;&#39;.$field.&#39;&amp;lt;/th&gt;&#39;;  
}
echo &#39;&amp;lt;/tr&gt;&#39;;
 
while($row = mysql_fetch_assoc($sql)){ 
 foreach($fields_array as $key=&gt;$field){
  $field_name = (empty($row[$field])) ? &#39;0&#39; : $row[$field];
  echo &#39;&amp;lt;td align=&quot;center&quot;&gt;&#39;.$field_name.&#39;&amp;lt;/td&gt;&#39;; 
 }
}

&lt;font color=&quot;green&quot;&gt;// pagination &lt;/font&gt;
echo &#39;&amp;lt;tr&gt;&amp;lt;td colspan=&quot;4&quot;&gt;&#39;.pagination().&#39;&amp;lt;/td&gt;&amp;lt;/tr&gt;&#39;;
echo &#39;&amp;lt;/table&gt;&#39;;
?&gt;&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programming-tut.blogspot.com/feeds/514639619519333349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programming-tut.blogspot.com/2011/12/php-simple-pagination.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/514639619519333349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/514639619519333349'/><link rel='alternate' type='text/html' href='http://programming-tut.blogspot.com/2011/12/php-simple-pagination.html' title='PHP: Simple Pagination in MySQL I'/><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><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2824414569643868576.post-7126907164929455970</id><published>2011-12-17T00:47:00.000-08:00</published><updated>2012-05-21T01:01:23.081-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="loading image generator"/><category scheme="http://www.blogger.com/atom/ns#" term="web tools"/><title type='text'>Web Tools: Online &quot;Loading&quot; image Generator</title><content type='html'>&lt;div class=&quot;box&quot;&gt;&lt;img src=&quot;http://www.simonerodriguez.com/public/WindowsLiveWriter/FormSubmitinAjaxScriptperprincipianti_13F50/black_busy_1.gif&quot; alt=&quot;&quot; /&gt;&lt;img src=&quot;http://www.simonerodriguez.com/public/WindowsLiveWriter/FormSubmitinAjaxScriptperprincipianti_13F50/bouncing_ball_16x16_1.gif&quot; alt=&quot;&quot; /&gt; &lt;img src=&quot;http://www.simonerodriguez.com/public/WindowsLiveWriter/FormSubmitinAjaxScriptperprincipianti_13F50/circle-ball-dark-antialiased_1.gif&quot; alt=&quot;&quot; width=&quot;16&quot; height=&quot;16&quot; /&gt; &lt;img src=&quot;http://www.simonerodriguez.com/public/WindowsLiveWriter/FormSubmitinAjaxScriptperprincipianti_13F50/circling-ball-3-frame-fade-black_1.gif&quot; alt=&quot;&quot; width=&quot;16&quot; height=&quot;16&quot; /&gt; &lt;img src=&quot;http://www.simonerodriguez.com/public/WindowsLiveWriter/FormSubmitinAjaxScriptperprincipianti_13F50/circling-ball-3-frame-fade-transparent-back-dark-antialiased_1.gif&quot; alt=&quot;&quot; width=&quot;16&quot; height=&quot;16&quot; /&gt; &lt;img src=&quot;http://www.simonerodriguez.com/public/WindowsLiveWriter/FormSubmitinAjaxScriptperprincipianti_13F50/circling-ball-black-back_1.gif&quot; alt=&quot;&quot; width=&quot;16&quot; height=&quot;16&quot; /&gt; &lt;img src=&quot;http://www.simonerodriguez.com/public/WindowsLiveWriter/FormSubmitinAjaxScriptperprincipianti_13F50/circling-squares-with-trail_1.gif&quot; alt=&quot;&quot; width=&quot;16&quot; height=&quot;16&quot; /&gt; &lt;img src=&quot;http://www.simonerodriguez.com/public/WindowsLiveWriter/FormSubmitinAjaxScriptperprincipianti_13F50/gray_busy_1.gif&quot; alt=&quot;&quot; width=&quot;29&quot; height=&quot;5&quot; /&gt; &lt;img src=&quot;http://www.simonerodriguez.com/public/WindowsLiveWriter/FormSubmitinAjaxScriptperprincipianti_13F50/green_rot_1.gif&quot; alt=&quot;&quot; width=&quot;24&quot; height=&quot;24&quot; /&gt; &lt;img src=&quot;http://www.simonerodriguez.com/public/WindowsLiveWriter/FormSubmitinAjaxScriptperprincipianti_13F50/hypnotize_out_1.gif&quot; alt=&quot;&quot; width=&quot;32&quot; height=&quot;16&quot; /&gt; &lt;img src=&quot;http://www.simonerodriguez.com/public/WindowsLiveWriter/FormSubmitinAjaxScriptperprincipianti_13F50/icon_animated_busy2_1.gif&quot; alt=&quot;&quot; width=&quot;16&quot; height=&quot;16&quot; /&gt; &lt;img src=&quot;http://www.simonerodriguez.com/public/WindowsLiveWriter/FormSubmitinAjaxScriptperprincipianti_13F50/icon_animated_busy2_2_1.gif&quot; alt=&quot;&quot; width=&quot;16&quot; height=&quot;16&quot; /&gt; &lt;img src=&quot;http://www.simonerodriguez.com/public/WindowsLiveWriter/FormSubmitinAjaxScriptperprincipianti_13F50/icon_animated_busy2_2_5_1.gif&quot; alt=&quot;&quot; width=&quot;16&quot; height=&quot;16&quot; /&gt; &lt;img src=&quot;http://www.simonerodriguez.com/public/WindowsLiveWriter/FormSubmitinAjaxScriptperprincipianti_13F50/icon_animated_busy_1.gif&quot; alt=&quot;&quot; width=&quot;16&quot; height=&quot;16&quot; /&gt;&lt;img src=&quot;http://www.simonerodriguez.com/public/WindowsLiveWriter/FormSubmitinAjaxScriptperprincipianti_13F50/indicator.white_1.gif&quot; alt=&quot;&quot; width=&quot;16&quot; height=&quot;16&quot; /&gt; &lt;img src=&quot;http://www.simonerodriguez.com/public/WindowsLiveWriter/FormSubmitinAjaxScriptperprincipianti_13F50/kittscanner-transparent_1.gif&quot; alt=&quot;&quot; width=&quot;16&quot; height=&quot;16&quot; /&gt; &lt;img src=&quot;http://www.simonerodriguez.com/public/WindowsLiveWriter/FormSubmitinAjaxScriptperprincipianti_13F50/pleasewait_1.gif&quot; alt=&quot;&quot; width=&quot;214&quot; height=&quot;15&quot; /&gt; &lt;img src=&quot;http://www.simonerodriguez.com/public/WindowsLiveWriter/FormSubmitinAjaxScriptperprincipianti_13F50/progress_1.gif&quot; alt=&quot;&quot; width=&quot;10&quot; height=&quot;10&quot; /&gt; &lt;img src=&quot;http://www.simonerodriguez.com/public/WindowsLiveWriter/FormSubmitinAjaxScriptperprincipianti_13F50/progressBarLong_1.gif&quot; alt=&quot;&quot; width=&quot;100&quot; height=&quot;16&quot; /&gt; &lt;img src=&quot;http://www.simonerodriguez.com/public/WindowsLiveWriter/FormSubmitinAjaxScriptperprincipianti_13F50/progressBarShort_1.gif&quot; alt=&quot;&quot; width=&quot;50&quot; height=&quot;16&quot; /&gt; &lt;img src=&quot;http://www.simonerodriguez.com/public/WindowsLiveWriter/FormSubmitinAjaxScriptperprincipianti_13F50/radar-transparent_1.gif&quot; alt=&quot;&quot; width=&quot;16&quot; height=&quot;16&quot; /&gt; &lt;img src=&quot;http://www.simonerodriguez.com/public/WindowsLiveWriter/FormSubmitinAjaxScriptperprincipianti_13F50/expanding_circle_3.gif&quot; alt=&quot;&quot; width=&quot;32&quot; height=&quot;16&quot; /&gt;&lt;/div&gt;&lt;br /&gt;
&lt;iframe src=&quot;http://www.ajaxload.info/&quot; frameborder=&quot;0&quot; width=&quot;500&quot; height=&quot;960&quot; style=&quot;border: 1px solid #eee;&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
Refer site: &lt;a href=&quot;http://www.ajaxload.info/&quot;&gt;http://www.ajaxload.info/&lt;/a&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://programming-tut.blogspot.com/feeds/7126907164929455970/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programming-tut.blogspot.com/2011/12/web-tools-online-loading-image.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/7126907164929455970'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/7126907164929455970'/><link rel='alternate' type='text/html' href='http://programming-tut.blogspot.com/2011/12/web-tools-online-loading-image.html' title='Web Tools: Online &quot;Loading&quot; image Generator'/><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><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2824414569643868576.post-5216878055096677866</id><published>2011-12-06T19:39:00.000-08:00</published><updated>2012-05-03T19:42:26.137-07:00</updated><title type='text'>Web Tools: Online QR-Code Generator</title><content type='html'>&lt;iframe frameborder=&quot;0&quot; height=&quot;510&quot; src=&quot;http://qrcode.kaywa.com/&quot; style=&quot;border: 1px solid #eee;&quot; width=&quot;95%&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
Refer site:&amp;nbsp;&lt;a href=&quot;http://qrcode.kaywa.com/&quot; target=&quot;_blank&quot;&gt;http://qrcode.kaywa.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://programming-tut.blogspot.com/feeds/5216878055096677866/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programming-tut.blogspot.com/2012/02/web-tools-online-qr-code-generator.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/5216878055096677866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/5216878055096677866'/><link rel='alternate' type='text/html' href='http://programming-tut.blogspot.com/2012/02/web-tools-online-qr-code-generator.html' title='Web Tools: Online QR-Code Generator'/><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><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2824414569643868576.post-7680641206857186825</id><published>2011-10-30T03:02:00.000-07:00</published><updated>2011-10-30T03:02:33.748-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="general reading"/><title type='text'></title><content type='html'>&lt;div class=&quot;qoute&quot;&gt;
Computers are good at following instructions, but not at reading your mind. &lt;span class=&quot;refer&quot;&gt;~ Donald Knuth&lt;/span&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programming-tut.blogspot.com/feeds/7680641206857186825/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programming-tut.blogspot.com/2011/10/computers-are-good-at-following.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/7680641206857186825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/7680641206857186825'/><link rel='alternate' type='text/html' href='http://programming-tut.blogspot.com/2011/10/computers-are-good-at-following.html' title=''/><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><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2824414569643868576.post-7230798518036551064</id><published>2011-10-29T02:48:00.000-07:00</published><updated>2014-03-13T20:43:34.433-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="find link in string"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="preg match all"/><category scheme="http://www.blogger.com/atom/ns#" term="regex expression"/><category scheme="http://www.blogger.com/atom/ns#" term="regular expression"/><category scheme="http://www.blogger.com/atom/ns#" term="track url"/><title type='text'>PHP: Search URL in a string</title><content type='html'>When found an URL beginning with &lt;b&gt;http://&lt;/b&gt;, add anchor tag to it.&lt;br /&gt;


&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Code:&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;
&lt;pre&gt;&amp;lt;?php
$str = &quot;bla http://www.example.com bla bla http://www.example.net bla bla&quot;;

$m = preg_match_all(&#39;&lt;font color=&quot;red&quot;&gt;/http:\/\/[a-z0-9A-Z.]+(?(?=[\/])(.*))/&lt;/font&gt;&#39;, $str, $match);

if ($m) {
 $links = $match[0];
 for ($j = 0; $j &amp;lt; $m; $j++) {
  $str = str_replace($links[$j],
  &#39;&amp;lt;a href=&quot;&#39;.$links[$j].&#39;&quot;&amp;gt;&#39;.$links[$j].&#39;&amp;lt;/a&amp;gt;&#39;,
  $str);
 }
}

echo &quot;Content: &quot;.$str; 
?&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Output:&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;
&lt;br /&gt;
Content: bla &lt;a href=&quot;http://www.example.com/&quot;&gt;http://www.example.com&lt;/a&gt; bla bla &lt;a href=&quot;http://www.example.net/&quot;&gt;http://www.example.net&lt;/a&gt; bla bla
&lt;br /&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;br /&gt;
Refer: &lt;br /&gt;
&lt;a href=&quot;http://php.net/manual/en/function.preg-match-all.php&quot; target=&quot;_blank&quot; alt=&quot;function preg match all&quot;&gt;http://php.net/manual/en/function.preg-match-all.php&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://php.net/manual/en/function.preg-match.php&quot; target=&quot;_blank&quot; alt=&quot;function preg match&quot;&gt;http://php.net/manual/en/function.preg-match.php&lt;/a&gt;&lt;br /&gt;
&lt;br&gt;
Other regex expressions to match URL format:
&lt;div class=&quot;box&quot;&gt;
&lt;pre&gt;&lt;font color=&quot;red&quot;&gt;@((https?://)?([-\w]+\.[-\w\.]+)+\w(:\d+)?(/([-\w/_\.]*(\?\S+)?)?)*)@&lt;/font&gt;&lt;/pre&gt;
&lt;/div&gt;
Refer: &lt;a href=&quot;http://stackoverflow.com/questions/16113652/using-phps-preg-match-all-to-extract-a-url&quot; target=&quot;_blank&quot;&gt;http://stackoverflow.com/questions/16113652/using-phps-preg-match-all-to-extract-a-url&lt;/a&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://programming-tut.blogspot.com/feeds/7230798518036551064/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programming-tut.blogspot.com/2011/10/php-search-url-in-string.html#comment-form' title='22 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/7230798518036551064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/7230798518036551064'/><link rel='alternate' type='text/html' href='http://programming-tut.blogspot.com/2011/10/php-search-url-in-string.html' title='PHP: Search URL in a string'/><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><thr:total>22</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2824414569643868576.post-3795394824159316254</id><published>2011-10-20T02:28:00.000-07:00</published><updated>2011-10-29T02:22:38.869-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="convert 64bit integer to string in php"/><category scheme="http://www.blogger.com/atom/ns#" term="convert integer to string in php"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="remove scientific notation in php"/><title type='text'>PHP: Convert Long Integer to String</title><content type='html'>Sometimes long integer might automatic generate as a scientific notation/numerical format, when export to excel sheet for an example.&lt;br /&gt;
Eg: &lt;b&gt;725239016523 --&amp;gt; 7.25239E+11&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
To make sure all numbers are displayed, you may force the integer variable to string. There are many ways to convert it to string, below are some of the tricks, but might be more:-&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;box&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;$integer = 725239016523;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;echo $integer . &quot; is a &quot;. gettype($integer) . &quot;&amp;lt;br&amp;gt;&quot;; &lt;/span&gt;&lt;span style=&quot;color: green; font-size: small;&quot;&gt;// check type of $integer&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;$item = (string)$integer; &lt;/span&gt;&lt;span style=&quot;color: green; font-size: small;&quot;&gt;// or&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;$item = strval($integer); &lt;/span&gt;&lt;span style=&quot;color: green; font-size: small;&quot;&gt;// or&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;$item = trim($integer); &lt;/span&gt;&lt;span style=&quot;color: green; font-size: small;&quot;&gt;// or&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;$item = $integer.&quot;&quot;; &lt;/span&gt;&lt;span style=&quot;color: green; font-size: small;&quot;&gt;// or&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;$item = $integer.&quot; &quot;; &lt;/span&gt;&lt;span style=&quot;color: green; font-size: small;&quot;&gt;// or&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;$item = $integer.&quot;&amp;amp;nbsp;&quot;; &lt;/span&gt;&lt;span style=&quot;color: green; font-size: small;&quot;&gt;// or&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;$item = &quot;$integer&quot;; &lt;/span&gt;&lt;span style=&quot;color: green; font-size: small;&quot;&gt;// or ...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;echo $item . &#39; is a &#39;. gettype($item) . &quot;&amp;lt;br&amp;gt;&quot;; &lt;/span&gt;&lt;span style=&quot;color: green; font-size: small;&quot;&gt;// check $integer whether is string or integer&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Refer: &lt;a href=&quot;http://stackoverflow.com/questions/1035634/converting-an-integer-to-a-string-in-php&quot; target=&quot;_blank&quot;&gt;http://stackoverflow.com/questions/1035634/converting-an-integer-to-a-string-in-php&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
See also check type of a variable&lt;br /&gt;
&lt;a href=&quot;http://php.net/manual/en/function.sprintf.php&quot;&gt;sprintf()&lt;/a&gt; - Return a formatted string&lt;br /&gt;
&lt;a href=&quot;http://sg.php.net/manual/en/function.gettype.php&quot; target=&quot;_blank&quot;&gt;gettype()&lt;/a&gt; - Get the type of a variable&lt;br /&gt;
&lt;a href=&quot;http://sg.php.net/manual/en/function.is-bool.php&quot; target=&quot;_blank&quot;&gt;is_bool()&lt;/a&gt; - Finds out whether a variable is a boolean&lt;br /&gt;
&lt;a href=&quot;http://sg.php.net/manual/en/function.is-float.php&quot; target=&quot;_blank&quot;&gt;is_float()&lt;/a&gt; - Finds whether the type of a variable is float&lt;br /&gt;
&lt;a href=&quot;http://sg.php.net/manual/en/function.is-int.php&quot; target=&quot;_blank&quot;&gt;is_int()&lt;/a&gt; - Find whether the type of a variable is integer&lt;br /&gt;
&lt;a href=&quot;http://sg.php.net/manual/en/function.is-string.php&quot; target=&quot;_blank&quot;&gt;is_string()&lt;/a&gt; - Find whether the type of a variable is string&lt;br /&gt;
&lt;a href=&quot;http://sg.php.net/manual/en/function.is-array.php&quot; target=&quot;_blank&quot;&gt;is_array()&lt;/a&gt; - Finds whether a variable is an array&lt;br /&gt;
&lt;a href=&quot;http://sg.php.net/manual/en/function.is-object.php&quot; target=&quot;_blank&quot;&gt;is_object()&lt;/a&gt; - Finds whether a variable is an object&lt;br /&gt;
&lt;a href=&quot;http://sg.php.net/manual/en/function.is-numeric.php&quot; target=&quot;_blank&quot;&gt;is_numeric()&lt;/a&gt; - Finds whether a variable is a number or a numeric string&lt;br /&gt;
&lt;a href=&quot;http://sg.php.net/manual/en/function.is-scalar.php&quot; target=&quot;_blank&quot;&gt;is_scalar()&lt;/a&gt; - Finds whether a variable is a scalar&lt;br /&gt;
&lt;a href=&quot;http://sg.php.net/manual/en/function.is-null.php&quot; target=&quot;_blank&quot;&gt;is_null()&lt;/a&gt; - Finds whether a variable is NULL&lt;br /&gt;
&lt;a href=&quot;http://sg.php.net/manual/en/function.is-resource.php&quot; target=&quot;_blank&quot;&gt;is_resource()&lt;/a&gt; - Finds whether a variable is a resource&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://programming-tut.blogspot.com/feeds/3795394824159316254/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programming-tut.blogspot.com/2011/10/php-convert-long-integer-to-string.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/3795394824159316254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2824414569643868576/posts/default/3795394824159316254'/><link rel='alternate' type='text/html' href='http://programming-tut.blogspot.com/2011/10/php-convert-long-integer-to-string.html' title='PHP: Convert Long Integer to String'/><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><thr:total>1</thr:total></entry></feed>