Share » Forums » Developer » Correct way to check if an array...

Correct way to check if an array element exists

Correct way to check if an array element exists

Tuesday 15 March 2005 4:10:49 am - 3 replies

Author Message

liu spider

Tuesday 15 March 2005 9:11:49 am

try this:
you can use isset($level.partner_objects[$:key]} to test whether the variable is availalbe.

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

Hans Melis

Tuesday 15 March 2005 9:19:17 am

Actually, the template function is: <b>is_set()</b>. The isset() function is the PHP variant.

Hans
http://blog.hansmelis.be

Eirik Alfstad Johansen

Wednesday 16 March 2005 12:57:21 am

Thanks a lot, guys! I changed it, and now the debug output looks nice and tidy. Oh, happy days. :)

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu