www.webdeveloper.com
Results 1 to 2 of 2

Thread: Ultimate equivalence of PHP's isset

  1. #1
    Join Date
    Mar 2010
    Posts
    14

    Ultimate equivalence of PHP's isset

    This is also served to declare default values in functions.

    Seemingly, the solution is:
    Code:
    if (myvar == undefined)
    Alas,
    Quote Originally Posted by [url=http://verens.com/archives/2005/07/25/isset-for-javascript/comment-page-1/#comment-1721]this blog comment[/url]
    Some really old browsers donít support undefined.
    A solution is given for this:
    add a global def (with no value) for undefined, e.g.
    var undefined;
    But I'd like to ask fellow posters here if it's really the right solutions.

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Use undefined. I doubt there are any IE5 browsers that have never been updated.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles