Hello world!

Hello world 🙂 This is my first post on my first blog. I am hoping my new journey will be a great one, learning new things and sharing my knowledge with everyone on the net who is interested. I am going to share my thoughts in PHP, Javascript, HTML, CSS and maybe others. Also, I will…

Image view helper for Zend Framework

Image view helper to generate an image tag Arguments to pass are: Uniqe name for the image tag. Will be the id attribute. Path to the image file. Tag Attributes. (alt tag is required and it will generate the title tag with the same value) Optional string parameter. Currently if you enter thumnail it will…

PHP string functions to Class

Would it be better if all PHP string functions are methods of a String class? Would that make working with strings an easy job? and make the code easier to read and maintain? Here is my experiment on wrapping some of the built in functions into a class.

Custom Flash Messenger for Zend Framework

FlashMessenger is an action helper in Zend Framework used to pass messages for the users on the next request. Thats all good, but what about presenting the messages for the users? how to store different type of messages, System, Error, or Success messages?

Custom Module Bootstrap Class

In my Zend Framework application I wanted a bootstrap class for every module. Each bootstrap class will instantiate confirguration specific for each module. You do not have to add a bootstrap class to a module if no confirguration is required for that module.

StackOverflow Answers (WordPress Widget)

Widget to display a summary of answers you have posted in StackOverflow. It will display the question’s title, the answer’s score, and the time the answer was last edited. You can limit the number of questions displaying and sort the list based on: Highest score. Oldest answer. Newest answer.

fputcsv() function with SplFileObject

The SplFileObject is a replacement object oriented approach for php filesystem functions. Not all of the functions are part of the SPL classes. fputcsv() is only available from PHP 5.4 onwards. However, it is not too hard to replicate the function if you are not using PHP 5.4. Here is how I implemented it, short…

Argument unpacking in PHP5.6

PHP 5.6 comes with some new features. This post is to preview the Argument unpacking.

Variadic functions in PHP5.6

PHP 5.6 comes with some new features. This post is to preview the Variadic functions This new feature looks as follows: