Downloads

 

Variable Variables

It is a rare occurrence that I find an excuse to use variable variables, but when that situation arises they are not only helpful but also fun in a way. I have often heard beginning programmers say that they find the concept difficult to grasp. I believe the confusion doesn’t stem from understanding the concept [...]

More on Types…

Since I have neglected my blog this week I decided to write a small continuation of the discussion on Types in PHP.
I was helping a fellow coder yesterday, and he was having problems with a simple comparison statement. The situation he found himself in was this:
A $_POST value could either be 0 (zero) or [...]

Variable Types – Why Care?

We have all heard PHP is a loosely typed language. If you are unsure of the meaning of the term “loosely typed” the definition in the PHP manual states (at least for our discussion):
PHP – Manual
The type of a variable is usually not set by the programmer; rather, it is decided at runtime by PHP [...]

MySQL returns strings…or does it?

I noticed an interesting fact yesterday, which pertains to my original post MySQL returns strings (if you have not read this yet, please do). The PHP function mysql_num_rows(), which returns the number of rows in a result set, I assumed would return the number of rows as a string. Since field values are [...]

Improve the web with Nofollow Reciprocity.