<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>php on Home Page</title><link>https://ehsanakhgari.org/tags/php/</link><description>Recent content in php on Home Page</description><generator>Hugo -- gohugo.io</generator><language>en-ca</language><copyright>To the extent possible under law, Ehsan Akhgari has waived all copyright and related or neighboring rights to this website. This work is published from: Canada.</copyright><lastBuildDate>Mon, 28 Jul 2008 17:01:39 +0000</lastBuildDate><atom:link href="https://ehsanakhgari.org/tags/php/index.xml" rel="self" type="application/rss+xml"/><item><title>Swapping values in PHP</title><link>https://ehsanakhgari.org/blog/2008-07-28/swapping-values-php/</link><pubDate>Mon, 28 Jul 2008 17:01:39 +0000</pubDate><guid>https://ehsanakhgari.org/blog/2008-07-28/swapping-values-php/</guid><description>It's always a good thing to search for something cool that you've found before blogging it, to make sure that others have not already done the same! It even helped me see a PHP trick that should be familiar to seasoned C/C++ programmers&amp;hellip;
Oh, and for those who want to read it here as well, here's a one-liner to swap the values of two variables in PHP:
list($a, $b) = array($b, $a);</description></item><item><title>Persian Sorting for MySQL</title><link>https://ehsanakhgari.org/article/php/2008-05-20/persian-sorting-mysql/</link><pubDate>Tue, 20 May 2008 09:55:47 +0000</pubDate><guid>https://ehsanakhgari.org/article/php/2008-05-20/persian-sorting-mysql/</guid><description>It seems like sorting Persian strings stored in a MySQL database is a common problem to many people who develop web-based database applications that support Persian. I've been asked about this problem numerous times, and I've decided to write an article about the issue, and present my own solution to it as well.
The problem Speaking in plain, non-technical words, MySQL versions up to 4.0.x don't support Unicode, so any language (Persian included) which needs to use a Unicode encoding system (such as UTF-8) is not supported.</description></item></channel></rss>