How To Sort A Multidimensional Array By One Element In PHP

I had a table’s worth of listings and had stored all the values in a multidimensional array in PHP. The problem was, I needed to sort the multidimensional array, but based on just one element. Here’s the easiest, fastest solution that I found from the array_multisort function page of PHP (thanks to zequez at gmail dot com!). Here’s his original solution taken from that page: $multiArray = Array( Array("id" => 1, "name" => "Defg"), Array("id" => 2, "name" => "Abcd"),

Continue Reading

How To Split Firefox into Different Windows/Tabs And See Everything At Once

If you work with many websites, or want to keep track of many different websites, and would like to do that simultaneously, then the default Firefox probably wouldn’t cut it for you. Safari has live bookmarks that may do what you want, but in my personal opinion, these following Firefox add-ons do a much better job. Firefox Splitter (Formerly Split Browser) Firefox Splitter is an add-on that allows you to browse with multiple tabs open at once in front of

Continue Reading

Simple Way to Relay or Pass POST Data From A Page to Another Without .htaccess, Even Cross-Domain

So I had a page which I absolutely could not change or rename. The challenge was, this page would normally receive POST data, and I had to pass or relay this POST data to another page, which resided on another domain. I tried .htaccess, but that didn’t work, so I figured that I had to do some programming. It was simple enough with the curl library to do so, and here it is – The method to pass POST data

Continue Reading

Sliding Sidebar