About 23,000,000 results
Open links in new tab
  1. PHP short-ternary ("Elvis") operator vs null coalescing operator

    Can someone explain the differences between ternary operator shorthand (?:) and null coalescing operator (??) in PHP? When do they behave differently and when in the same way (if that even happens)...

  2. syntax - What does "->" or "=>" mean in PHP? - Stack Overflow

    Jun 2, 2024 · since PHP 7.4 => operator is also used for the arrow functions, a more concise syntax for anonymous functions. since PHP 8.0 => operator is also used to define hands in the match expression

  3. How do the PHP equality (== double equals) and identity

    PHP Double Equals == equality chart: PHP Triple Equals === Equality chart: Source code to create these images: PHP equality charts Guru Meditation Those who wish to keep their sanity, read no further because none of this will make any sense, except to say that this is how the insanity-fractal, of PHP was designed. NAN != NAN but NAN == true.

  4. PHP Difference between array() and [] - Stack Overflow

    Short array syntax was introduced in PHP 5.4, there is no difference and the old method will not be removed, so it's safe to use either. Short tags are usually frowned upon, I wouldn't use them.

  5. PHP Get name of current directory - Stack Overflow

    Apr 3, 2012 · That way when common.php is require'd in main.php, the call of require_once in common.php will correctly includes editor.php in images/editor.php instead of trying to look in current directory where main.php is run.

  6. What is <=> (the 'Spaceship' Operator) in PHP 7?

    May 21, 2015 · The <=> ("Spaceship") operator will offer combined comparison in that it will : Return 0 if values on either side are equal Return 1 if the value on the left is greater Return -1 if the value on the right is greater The rules used by the combined comparison operator are the same as the currently used comparison operators by PHP viz. <, <=, ==, >= and >. Those who …

  7. php - curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in …

    Jul 25, 2017 · I'm hitting my curl on ubuntu terminal and getting this response curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to domain.com:443 . I really can't understand why it happens. I trie...

  8. php - What is the difference between public, private, and …

    PHP manual has a good read on the question here. The visibility of a property or method can be defined by prefixing the declaration with the keywords public, protected or private.

  9. Reference Guide: What does this symbol mean in PHP? (PHP Syntax)

    What is this? This is a collection of questions that come up now and then about syntax in PHP. This is also a Community Wiki, so everyone is invited to participate in maintaining this list. This qu...

  10. PHP - concatenate or directly insert variables in string

    If the variable inside the double quote PHP take time to parse variable. Check out this Single quotes or double quotes for variable concatenation? This is another example Is there a performance benefit single quote vs double quote in php? I did not understand why this answer in above link get upvoted and why this answer got downvote.

Refresh