Quantcast
Channel: Code Snippets – WarkenSoft Productions
Browsing latest articles
Browse All 4 View Live

PHP Function to Convert LineBreaks to NewLines

While PHP has a very nice little function (nl2br) to convert newlines (\n) to line breaks (<br>), moving in the opposite direction is not quite so easy. This function should hopefully help to...

View Article



Secondary WordPress Loops

In coding WordPress plugins and themes, I have often found it necessary to create secondary WordPress loops in the code to show a list of articles or posts on the site that wouldn’t normally appear on...

View Article

Image may be NSFW.
Clik here to view.

Paginated Navigation Bar

One area of web programming that many of us have frequently run into is the need to show a long list of items (whether database results or whatever) in a nicely formatted, easily navigable way....

View Article

Building an Array Object Class

Having spent several years now working with the excellent Laravel platform, one of the features I tend to miss the most on non-Laravel projects is the Collection class. Sometimes I end up building my...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images