<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="https://sina.salek.ws"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Sina Salek Official Site - Function</title>
 <link>https://sina.salek.ws/taxonomy/term/323/0</link>
 <description></description>
 <language>en</language>
<item>
 <title>Sorting two dimensional array like query result by sub array&#039;s key in PHP</title>
 <link>https://sina.salek.ws/content/sorting-two-dimensional-array-query-result-sub-arrays-key-php</link>
 <description>&lt;p&gt;PHP offers &lt;a href=&quot;http://www.php.net/manual/en/array.sorting.php&quot; target=&quot;_blank&quot;&gt;dozens of functions&lt;/a&gt; for sorting arrays, but unfortualey non of this functions support sorting by sub-key&#039;s value out of the box. It&#039;s very useful when you want to sort the result of a query by an specific column.&lt;/p&gt;&lt;p&gt;Sample : &lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://sina.salek.ws/content/sorting-two-dimensional-array-query-result-sub-arrays-key-php&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>https://sina.salek.ws/content/sorting-two-dimensional-array-query-result-sub-arrays-key-php#comments</comments>
 <category domain="https://sina.salek.ws/category/path/blog">Blog</category>
 <category domain="https://sina.salek.ws/category/tags/function">Function</category>
 <category domain="https://sina.salek.ws/category/tags/php">PHP</category>
 <pubDate>Fri, 15 Jan 2010 21:20:00 +0000</pubDate>
 <dc:creator>admin</dc:creator>
 <guid isPermaLink="false">1308 at https://sina.salek.ws</guid>
</item>
<item>
 <title>PHP&#039;s forward compatible version compare</title>
 <link>https://sina.salek.ws/content/phps-forward-compatible-version-compare</link>
 <description>&lt;p&gt;Sometimes the code is forward compatible, for example when it&#039;s compatible with all future PHP5 releases, put PHP&#039;s &lt;a href=&quot;http://php.net/manual/en/function.version-compare.php&quot;&gt;version_compare&lt;/a&gt; function does not support this (Perhaps because they know that they always break compatibility with every minor release!!!). This function supports .x, for the above example it&#039;s : 5.x&lt;/p&gt;&lt;p&gt;

It&#039;s also shared &lt;a href=&quot;http://www.php.net/manual/en/function.version-compare.php#92935&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://sina.salek.ws/content/phps-forward-compatible-version-compare&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>https://sina.salek.ws/content/phps-forward-compatible-version-compare#comments</comments>
 <category domain="https://sina.salek.ws/category/path/blog">Blog</category>
 <category domain="https://sina.salek.ws/category/tags/function">Function</category>
 <category domain="https://sina.salek.ws/category/tags/php">PHP</category>
 <category domain="https://sina.salek.ws/category/tags/programming">Programming</category>
 <pubDate>Wed, 25 Nov 2009 23:41:11 +0000</pubDate>
 <dc:creator>admin</dc:creator>
 <guid isPermaLink="false">1288 at https://sina.salek.ws</guid>
</item>
<item>
 <title>Unix like smart recursive file/folder copy function for PHP</title>
 <link>https://sina.salek.ws/content/unix-smart-recursive-filefolder-copy-function-php</link>
 <description>&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span&gt;&lt;span&gt;PHP&#039;s&lt;/span&gt; file system manipulation 
functions are not as complete as they should be specially when it comes 
to manging recursive folders.&lt;/span&gt; For addressing part of this issue i
 decided to write a smart function which can handle recursive 
file/folder copy easily.&lt;/p&gt;&lt;p&gt;As you 
may have noticed there are feature that i didn&#039;t have time to implement ,
 so if you have time to extend this function please notify me as well 
:).

It&#039;s also shared &lt;a href=&quot;http://www.php.net/manual/en/function.copy.php#91256&quot;&gt;here&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://sina.salek.ws/content/unix-smart-recursive-filefolder-copy-function-php&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>https://sina.salek.ws/content/unix-smart-recursive-filefolder-copy-function-php#comments</comments>
 <category domain="https://sina.salek.ws/category/path/blog">Blog</category>
 <category domain="https://sina.salek.ws/category/tags/function">Function</category>
 <category domain="https://sina.salek.ws/category/tags/php">PHP</category>
 <category domain="https://sina.salek.ws/category/tags/tutorial">Tutorial</category>
 <pubDate>Wed, 25 Nov 2009 05:50:25 +0000</pubDate>
 <dc:creator>admin</dc:creator>
 <guid isPermaLink="false">1289 at https://sina.salek.ws</guid>
</item>
<item>
 <title>Alpha support for PHP&#039;s imagecopymerge function</title>
 <link>https://sina.salek.ws/content/alpha-support-phps-imagecopymerge-function</link>
 <description>&lt;p&gt;I&#039;ve just checked PHP&#039;s issue tracker and a core developer says that this function (&lt;a href=&quot;http://www.php.net/manual/en/function.imagecopymerge.php&quot;&gt;imagecopymerge&lt;/a&gt;) was never meant to support alpha channel! and they refused to commit the provided patch! so ridicules Anyway i tried &lt;a href=&quot;http://www.php.net/manual/en/function.imagecopymerge.php#88456&quot;&gt;rodrigo&#039;s workaround&lt;/a&gt; and it worked quite well, thanks rodrigo for sharing it. I came up with another idea which is much faster than his solution, (it may need a little bit more memory)&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://sina.salek.ws/content/alpha-support-phps-imagecopymerge-function&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>https://sina.salek.ws/content/alpha-support-phps-imagecopymerge-function#comments</comments>
 <category domain="https://sina.salek.ws/category/path/blog">Blog</category>
 <category domain="https://sina.salek.ws/category/tags/function">Function</category>
 <category domain="https://sina.salek.ws/category/tags/php">PHP</category>
 <category domain="https://sina.salek.ws/category/tags/programming">Programming</category>
 <pubDate>Mon, 23 Nov 2009 05:39:31 +0000</pubDate>
 <dc:creator>admin</dc:creator>
 <guid isPermaLink="false">1287 at https://sina.salek.ws</guid>
</item>
</channel>
</rss>
