Yahoo España Búsqueda web

Search results

  1. 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. 4 de jul. de 2010 · The difference between static and instantiated methods and properties seem to be one of the biggest obstacles to those just starting out with OOP PHP in PHP 5. The double colon operator (which is called the Paamayim Nekudotayim from Hebrew - trivia) is used when calling an object or property from a static context.

  3. 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_SELF puede ser muy peligroso si lo usas incorrectamente. Te dejo la traducción de una de las notas del Manual con mayor aceptación: $ _SERVER ['PHP_SELF'] es peligroso si se usa incorrectamente. Si se solicita login.php/nearly_arbitrary_string, $ _SERVER ['PHP_SELF'] contendrá no solo login.php, sino todo el login.php/nearly_arbitrary ...

  5. If you need the actual file name, you might want to try either $_SERVER['PHP_SELF'], the magic constant __FILE__, or $_SERVER['SCRIPT_FILENAME']. The latter 2 give you the complete path (from the root of the server), rather than just the root of your website.

  6. The double arrow operator, =>, is used as an access mechanism for arrays. This means that what is on the left side of it will have a corresponding value of what is on the right side of it in array context. This can be used to set values of any acceptable type into a corresponding index of an array. The index can be associative (string based) or ...

  7. 10 de dic. de 2010 · In php both AND, && and OR, || will work in the same way. If you are new in programming and php is one of your first languages them i suggest using AND and OR, because it increases readability and reduces confusion when you check back.

  8. In PHP, with systems where a user can login, it is not uncommon for an administrator to be able to impersonate another user for testing purposes. With the above example, if the user is not impersonating another user, and also a logged in user does not exist, then the user will be a guest user instead.

  9. 12 de abr. de 2023 · También puedes intentar haciéndolo al principio del código donde está el error, en este caso add_sold_control.php , como error_reporting(E_ALL); ini_set('error_reporting', E_ALL); o ` ini_set("display_errors", 1); y ahí PHP te explicará con mas detalle cuál es el problema que tienes.

  10. 9 de mar. de 2018 · Tengo tres páginas en PHP: Mapa.php Ficha.php Panel.php En la primera página envío el valor de una variable a la página Ficha.php con el metodo $_GET de la siguiente manera: Mapa.php: <a hre...

  1. La gente también busca