Tag Archives: Computer programming

Does JavaScript undefined Equals undefined?

Weird JS As you know sometimes JavaScript can be weird. Let’s see the following example and let’s try to answer the question: does “undefined” equals “undefined”. What do I mean? First take a look at the following code. var a; … Continue reading

Posted in javascript | Tagged , , , , , , , , , , , , , | 6 Comments

Some Notes on the Object-oriented Model of PHP

PHP 5 introduces interfaces and abstract classes. To become a little clearer, let us see their definitions. Interfaces Object interfaces allow you to create code which specifies which methods a class must implement, without having to define how these methods … Continue reading

Posted in PHP | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , | 5 Comments

Thing to Know About PHP Arrays

Consider the following case. We have an array with identical keys. $arr = array(1 => 10, 1 => 11); What happens when the interpreter reaches this line of code? This is not a syntax error and it is completely valid. … Continue reading

Posted in micro tutorial, PHP | Tagged , , , , , , , , , , , , , , , , , , | Leave a comment

Powerful PHP: Less Known String Manipulation

Yet another thing that’s great in PHP is the power you have when doing some string manipulation/operation. Here’s something that is really useful, but I think it remains a bit unknown. Let’s imagine you need to take the first (or … Continue reading

Posted in micro tutorial, PHP | Tagged , , , , , , , , | 6 Comments

OOP JavaScript: Accessing Public Methods in Private Methods

As you know in JavaScript when you define a variable with the special word “var” the scope of this variable is within the function. So when you simply wite “var a = 5″ the variable named “a” has a global … Continue reading

Posted in javascript, micro tutorial, web development | Tagged , , , , , , , , , , , , , , | 4 Comments