Please Explain

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
th.jayakumar
Forum Newbie
Posts: 6
Joined: Mon Mar 22, 2010 6:04 am

Please Explain

Post by th.jayakumar »

Can Anyone explain the meaning for the below statement

if (!isset($_SESSION['chatHistory'][$_POST['to']]))
{
$_SESSION['chatHistory'][$_POST['to']] = '';
}

what they are checking in the above statement

what is the meaning for this below statement

unset($_SESSION['tsChatBoxes'][$_POST['to']]);
M2tM
Forum Commoner
Posts: 41
Joined: Sat Feb 27, 2010 12:35 pm

Re: Please Explain

Post by M2tM »

Stop asking the same question over and over again.

Either learn how to program, read some manuals, look up the individual statements you are having difficulty with... Or stop mucking about in code.
th.jayakumar
Forum Newbie
Posts: 6
Joined: Mon Mar 22, 2010 6:04 am

Re: Please Explain

Post by th.jayakumar »

am not mucking the code..
i dint understand those lines
am converting some logic from pho to c#
M2tM
Forum Commoner
Posts: 41
Joined: Sat Feb 27, 2010 12:35 pm

Re: Please Explain

Post by M2tM »

You have asked in every single post what a line containing "isset" in regards to some session variable does. You are blindly thrashing about and asking redundant questions. Stop doing that and actually learn a little bit on your own and come back with a real question.

Have problems with isset? Search php.net or google for it.

http://ca.php.net/manual/en/function.isset.php

Have a problem with sessions? Learn about them.

http://ca.php.net/manual/en/book.session.php

This is one of the most readily available forms of documentation that exists for any language and asking the same silly question about similar lines of code is a waste of everybody's time.
th.jayakumar
Forum Newbie
Posts: 6
Joined: Mon Mar 22, 2010 6:04 am

Re: Please Explain

Post by th.jayakumar »

Thank u
Post Reply