HELP PLEASE!!

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
shoxlx
Forum Newbie
Posts: 23
Joined: Tue Oct 11, 2005 10:42 pm

HELP PLEASE!!

Post by shoxlx »

is their a way i can say:

if( $this == $that and $these == $those){ }else{ }

is their a code or somthing that will replace the word 'and' so both function have to be true to make the string work
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Please work on creating a more descriptive thread subject than "HELP PLEASE!!"

'and' is a keyword and performs the action you are wishing.
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

Re: HELP PLEASE!!

Post by raghavan20 »

shoxlx wrote:is their a way i can say:

if( $this == $that and $these == $those){ }else{ }

is their a code or somthing that will replace the word 'and' so both function have to be true to make the string work
Forgive me if I did not understand the question, but I am surprised to see you asking help for basic expressions....you should probably learn more PHP Manual or Tizag.com has good tutorials on PHP.

Code: Select all

$a = 4;
$b = 5;
$c = 8;
if ($a == $b && $a==$c){
}else{
}
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

the manual might be helpful :wink:
Post Reply