What does a PHP statement mean, in php? What does that mean?

Updated on educate 2024-03-03
14 answers
  1. Anonymous users2024-02-06

    This means to judge that the variable $entry is not equal to. And not equally. and the following is dir($dir.$entry) Yes.

    Equivalent to the meaning of and.

    The is dir() function checks whether the specified file is a directory.

    Brother Tai didn't go to high school, right? In my freshman year of high school, I learned about "or no". The sum here means and is, that is, both meet the conditions to be true, and one does not meet the conditions, which is false. Got it?

    ardir[$entry]=dirtree($dir.$entry.'/')

    Dirtree here is a custom function, and there is no such thing in the PHP API.

    If the function is a direct return message, it can be written like this.

    ardir[$entry]=dirtree($dir.$entry.'/')

    In other words, the information returned by dirtree() is directly assigned to the array variable.

    It's not hard to understand this...

  2. Anonymous users2024-02-05

    ."It is to judge whether there is a point before the crime.

    In fact, it is to determine whether $entry is.

    Dot and Dot Dot!

  3. Anonymous users2024-02-04

    I'll give you a counter-example.

    entry='.';Your judgment will be false.

    entry='..';Your judgment will be false.

    is_dir($dir.$entry)=false Your judgment will be false.

    To put it bluntly, in addition to the case of the parent directory and no directory file, your judgment will be true, and the statement in it will be executed.

    is the symbol of the connection condition, which is equivalent to the English and

    To put it bluntly, it is necessary to judge that there is a file directory.

  4. Anonymous users2024-02-03

    The first function is to read all the file and folder names in a given path.

    is the current folder .Represents the upper-level folder.

    It is not equal to the meaning.

    Yes and. ardir[$entry]=dirtree($dir.$entry.'/') is indeed a call to the custom function dirtree

    It can also be said to be a recursion.

  5. Anonymous users2024-02-02

    php"?: refers to the trinocular operator.

    The trinocular operator, also known as the conditional operator, is an important part of a computer language. It is the only operator with 3 operands, so it is sometimes called a ternary operator. In general, the combination of trinograph operators is the right boundary.

    The trinocular operator provides an easy way to express simple if-else statements. The operator is defined by a question mark (?) of the following format: ) and colon (:

    Composition: Expressions? Expression:

    Expression:A statement is called a conditional expression, consists of 3 sub-expressions, and uses a question mark? and colon: separated.

    The part of the conditional expression that precedes the question mark is the condition to be tested. It's like an expression in parentheses in an if statement. If the condition is true, then execute?

    between statements. And:; Otherwise, do the following sections.

    If you think it helps, you can put parentheses around the subexpression.

  6. Anonymous users2024-02-01

    This should be a template tag, not PHP syntax.

    Maybe PHP can write ** to parse it yourself, but you can't say that this is PHP language.

    That is to say, what you send is not necessarily related to php.。。。

  7. Anonymous users2024-01-31

    $a = &$b;

    This is a reference assignment.

    A stores the address of $b, and when you operate $a, you are essentially operating the value of the address of $a, which is $b

    The value of a is the same as the value of $b, and if one changes, the other will follow.

  8. Anonymous users2024-01-30

    Conditional Operations (Expressions)? (Expression 1) :(Expression 2) The value of the expression is true Evaluates the value of expression 1 The expression is false and evaluates the value of expression 2.

  9. Anonymous users2024-01-29

    php"?: refers to the trinocular operator.

  10. Anonymous users2024-01-28

    $a=$a<1?1:2;

    If $a<1 then $a=1, otherwise equals 2

  11. Anonymous users2024-01-27

    You're talking about the trinocular operator:

    c= a>b ?"aaa":"bbb" ;If A is greater than B, then C is AAA, otherwise it is BBB

  12. Anonymous users2024-01-26

    What is in the personal web page.

    Or something in an embedded language.

    The rest is not clear.

  13. Anonymous users2024-01-25

    Office boutique class.

    Course learning: Chinese character five pen input, computer hardware knowledge, Windows basic operation, Internet basic knowledge, use and maintenance of office equipment, word document processing, Excel electronic design and advanced data processing, PowerPoint presentation design, etc.

  14. Anonymous users2024-01-24

    I used to like simplicity for a while, the pursuit of simplicity and simplicity, like a period of time I like manual transmission cars because of the simple mechanical structure, but now I like automatic transmission, because of the simple operation, I think as a person, simple and comfortable operation is more important than the simple mechanical structure that I can't see.

Related questions
4 answers2024-03-03

1.Need a field trip to choose the learning style that suits you; >>>More

9 answers2024-03-03

If your html name is as regular as you say, you can write it smartly. >>>More

8 answers2024-03-03

Error file, basically useless, so don't open it.

8 answers2024-03-03

First of all, to be clear, this is not gibberish, but error information. >>>More

15 answers2024-03-03

In **, workhorse is a term that corresponds to the bookmaker. The main force of ** refers to the main force of a**, and generally refers to the dealer in **. >>>More