Recently a friend was given the task of ordering a group of variables that would be similiar to this:
| Group of ordered PHP variables | |
1 |
$var1 = 10; |
Recently I have been working a lot with RSS feeds, and they are becoming a more globally used plugin or addon onto any website, I regularly use premade plugins for CMS's such as Joomla or Wordpress to enabled RSS feeds to be automatically be added to posts, dependant upon categories or categories. Anyway, it is quite bland out there as to the stages you need to perform in order to make a custom RSS feed for yourself which is standards compliant and fully customisable from an admin panel. Here is a class I came up with which allows multiple feeds to be generated by the same file.
Although I didn't make this code I still feel it needs to be in the knowledge base area rather than the links section as it needs to be available to search the site for it, anyway I was basicallly finding it quite hard to find a wordpress plugin which allows the LI/UL tags to automatically hide depending on wether their parent element is selected or not, kind of like an accordion effect but without the javascript.
As mentioned at the end of January I had come across the problem where its very difficult to find a function online which basically loops through an array and removes the specficied key, but also shunts down the rest of the array so there isn't empty keys leftover.