Archive for January, 2011

How To Splice Using array_splice

Array_splice is very useful tool, it looks to me that is the only function you can use to insert an item in the middle of array. Read the rest of this entry »

Array And Object in PHP and Javascript

When you have had some experience of javascript programming, you must know that associative array is an object and an object is an associative, at least property wise (associative array is very different from index based array in many aspects)they are similar. Read the rest of this entry »

log4net In DLL Project

log4net is very popular open source logging utility for .NET, there are a lot that have been written about it mainly on how to setup and how to configure, but still there could be some issues that you may find difficult to deal with. Issues like logs are not generated or how to use it in a dll project in order to ascertain the logging is enabled for dll with or without any control of master application. Read the rest of this entry »

FILTER_VALIDATE_INT And 0

Filter_var function in php is a very useful built-in tool for server side form validation, but there is a minor problem when you validate an integer which is zero. It does not accept zero as a valid integer. Read the rest of this entry »