Jump to content

simple question


tomfmason

Recommended Posts

I feel stupid for having to ask this but you know what they say
[quote author=I have no idea]The only stupid question is the one left unasked[/quote]

Anyways, How can I say and in php. That may not make sense but here is or
[code=php:0]
if ($something || $something_else == "whatever") {
    //do something
}[/code]

So what I want to do is if something and something_else == whatever

Thanks,
Tom
Link to comment
Share on other sites

[quote author=Caesar link=topic=103344.msg411458#msg411458 date=1154996521]
[quote author=tomfmason link=topic=103344.msg411456#msg411456 date=1154995955]
Also * means and.
[/quote]

I must be misreading this because, "*" definitely does not mean "and". It means "all".
[/quote]
If you are using it in a mysql query then yes, but not in PHP.

Read thropes post for the meaning of the * operator in PHP.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.