Is this possible?
If this1 = 0
and this2 =0
and this3 =0
then this0 =hello
Cheers!
Is this possible?
If this1 = 0
and this2 =0
and this3 =0
then this0 =hello
Cheers!
EDIT: Didnt know that...PHP Code:$this = array();
if (($this[1] == "0") && ($this[2] == "0") && ($this[3] == "0")) {
$this[0] = "hello";
}
Last edited by boxxertrumps; 03-17-2007 at 07:05 PM.
You're missing a semicolon--
$this["0"] = "hello";
Additionally, for numeric arrays, you don't need to have quotes around the number.
Just $this[0] would be fine.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
thank you both very much!
Bookmarks