what is isset

This is a discussion on "what is isset" within the PHP Forum section. This forum, and the thread "what is isset are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 6th, 2007, 21:25
Reputable Member
Join Date: Mar 2007
Location: Kenya
Age: 19
Posts: 212
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to geyids Send a message via Yahoo to geyids Send a message via Skype™ to geyids
what is isset

What is
PHP: Select all

<?php
if(isset($test)) {
?>
I have come along it many times but I dont know what it does

Regards John
Reply With Quote

  #2 (permalink)  
Old Aug 6th, 2007, 21:34
1840dsgn's Avatar
SuperMember

SuperMember
Join Date: Jun 2007
Location: Canterbury
Age: 19
Posts: 720
Thanks: 0
Thanked 0 Times in 0 Posts
Re: what is isset

It means if the variable $test has a value or "is set" (isset)...then do whatever is in the curly braces!
Reply With Quote
  #3 (permalink)  
Old Aug 6th, 2007, 21:48
Reputable Member
Join Date: Mar 2007
Location: Kenya
Age: 19
Posts: 212
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to geyids Send a message via Yahoo to geyids Send a message via Skype™ to geyids
Re: what is isset

mmh more questions comin on this. I got that thanks
Reply With Quote
  #4 (permalink)  
Old Aug 7th, 2007, 02:32
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: what is isset

another useful one is !isset (if it isn't set)
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #5 (permalink)  
Old Aug 7th, 2007, 09:42
Reputable Member
Join Date: Mar 2007
Location: Kenya
Age: 19
Posts: 212
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to geyids Send a message via Yahoo to geyids Send a message via Skype™ to geyids
Re: what is isset

Quote:
Originally Posted by alexgeek View Post
another useful one is !isset (if it isn't set)
Is the only difference from the above one this mark?
Code: Select all
!

Last edited by geyids; Aug 7th, 2007 at 10:04.
Reply With Quote
  #6 (permalink)  
Old Aug 7th, 2007, 10:09
1840dsgn's Avatar
SuperMember

SuperMember
Join Date: Jun 2007
Location: Canterbury
Age: 19
Posts: 720
Thanks: 0
Thanked 0 Times in 0 Posts
Re: what is isset

yea a ! means not so..

PHP: Select all

if(!isset($number))   {

means if the variable $number is not set...
PHP: Select all

if($number != 2)  {

means if the variable $number is not equal to 2

etc
Reply With Quote
  #7 (permalink)  
Old Aug 7th, 2007, 11:15
Reputable Member
Join Date: Mar 2007
Location: Kenya
Age: 19
Posts: 212
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to geyids Send a message via Yahoo to geyids Send a message via Skype™ to geyids
Re: what is isset

mmh thanx didnt know that
Reply With Quote
Reply

Tags
isset

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
isset and empty karinne PHP Forum 15 Jan 28th, 2008 12:37


All times are GMT. The time now is 05:38.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43