Downloads

 

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 [...]

MySQL returns strings

This is a feature I have run into a few times (specifically when writing the unit tests for the Mysql Package). I thought I would post my thoughts and hopefully others will be able to expand on the topic.
When querying data out of MySQL into PHP, all values arrive in PHP as strings, even if [...]

Improve the web with Nofollow Reciprocity.