Search found 3 matches
- Tue Jan 08, 2008 7:31 pm
- Forum: PHP - Code
- Topic: Using [] in function call
- Replies: 5
- Views: 649
- Tue Jan 08, 2008 6:53 pm
- Forum: PHP - Code
- Topic: Using [] in function call
- Replies: 5
- Views: 649
- Tue Jan 08, 2008 6:14 pm
- Forum: PHP - Code
- Topic: Using [] in function call
- Replies: 5
- Views: 649
Using [] in function call
Hi - I'm beginning learning PHP so apolgoize if this is a really dumb question. I am looking at some code and see a line as follows: $var = myfunction($var1, $var2, $var3)[1]; I don't understand what the [1] at the end of the line is for? Also, this is throwing a parse error unexpected '['. Any help...