When I use the following code, and similar code, something strange happens:
<?php
if (!empty($this->Item[$TD_Part]['TechSpec']['Manufacturer'])) {
echo $this->Item[$TD_Part]['TechSpec']['Manufacturer'];
} else {
echo $this->Item[$TD_Part]['VEND_CODE'];
} ?>
This is what is happening. When the variable $TD_Part starts with a 0, it ALWAYS evaluates to false (even when it should be evaluating true), but the echo in the false block WORKS!
If I use settype on $TD_Part and set it to integer, the statement evaluates to true and the echo with 3 dimensions works, but the IF statements below with a 2 dimensional echo DO NOT WORK.
How do I make all the arrays of all dimensions work? Furthermore, why does the type change which variables evaluate and which don't??
Thanks a million for the help,
Tom 🙂