Jump to content

testing values


bosco

Recommended Posts

I just finished up a large tutorial in php. One thing has got me stumped. I wonder if someone can provide an answer. It isn't tutorial specific so I'll skip all that. Other tutorials are the same way.

 

The php programer builds his database, names his variables and creates his functions. He knows what is where. So why test if something is null, or present or whatever if you know what's there?

 

It may sound like a silly question but it really doesn't make sense to me. I know I put the value of 3 in the 4th key of an array, why test to see if it is there?

 

Any help to get me to understand will be greatly appreciated.

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/111665-testing-values/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.