Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7588005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:49:00+00:00 2026-05-30T19:49:00+00:00

Im new to PHP, and I am learning about control structures. I just learned

  • 0

Im new to PHP, and I am learning about control structures. I just learned about if statements, switch statement and while loops. I know the syntax for an if statement is:

if (condition)
{
    //code to be executed if the condition is true;
}

switch syntax:

switch (expression)
{
    case 1:
    //code to be executed;
    break;

    case 2:
    //code to be executed;
    break;

    default:
    //code to be executed;
}

and the syntax for a while loop is:

while (expression)
{
     //code to be executed if the expression is true;
}

I see the terms condition and argument and expression pretty interchangeably. Do they all mean the same thing? If not what are the differences?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T19:49:01+00:00Added an answer on May 30, 2026 at 7:49 pm

    I would use this terminology:

    if (condition)
       body
    while (condition)
       body
    switch (subject) {
       cases
    }
    

    That said, some people will refer to the condition of a while loop as an argument, for example. In my opinion this isn’t the best terminology, because an argument is something passed to a function, and if/while/switch are not functions in PHP (they are in some languages).

    But you’re right, some people will say “the argument of the while loop.” Just understand that they mean “the condition of the while loop.”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I am just learning more about using classes in PHP. I know the
I'm new to PHP and was learning about PHP functions from w3schools. It said
I am pretty new to php, but I am learning! I have a simple
When learning new languages such as C++ from PHP, does reading other language snippets
I'm new to PHP and i've been learning some php for the past couple
I'm quite curious about your experience learning html, css, php, js web standards etc.
I am learning Javascript, I have been using PHP for about 10 years so
I've been digging in and learning as much as I can about PHP Arrays,
I just started learning PHP and was wondering if there is a way to
I am interested in learning autoloading, but new to PHP. I am reading the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.