#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Posts
    43
    Rep Power
    15
    I have a variable, say $this_ol_vari.

    In a previous action, I set

    $this_ol_vari = 1;

    now I want to "clear" $this_ol_vari so that an ISSET($this_ol_vari) function would return false.

    I've tried setting it to 0, NULL, "NULL", "0", "", and " ".

    Any help is appreciated.

    Mike
  2. #2
  3. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15
    Hi ,

    you can use unset() function .this destroys the specified variable and returns true.

    eg:

    unset( $this_ol_vari );

    ------------------

    SR -
    shiju.dreamcenter.net

    Web developer from GOD's own country!!!!

    [This message has been edited by Shiju Rajan (edited May 10, 2000).]
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Posts
    43
    Rep Power
    15
    Thanks again Shiju.... worked perfectly.

    Mike
  6. #4
  7. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15

    Mike,

    Did you test that perl script???.

    ------------------
    SR -
    shiju.dreamcenter.net

    "I will love thee, O Lord,my strength"

Similar Threads

  1. Passing POST variables
    By rlorenzo in forum PHP Development
    Replies: 11
    Last Post: June 6th, 2004, 03:00 PM
  2. help with assigning variables, variable passing/ retrieval
    By pinkipodmini in forum PHP Development
    Replies: 0
    Last Post: February 13th, 2004, 10:40 PM
  3. Replies: 2
    Last Post: February 11th, 2004, 12:03 AM
  4. Replies: 5
    Last Post: January 7th, 2004, 03:23 AM
  5. Global.asa clearing application variables
    By ankush in forum ASP Programming
    Replies: 2
    Last Post: November 9th, 2003, 02:48 PM

IMN logo majestic logo threadwatch logo seochat tools logo