Given:
if ($variable = get_variable('variable')) { // ... }
* $ variable = get_variable ('variable') * issues a "Destination in state" warning in Zend Studio. I understand what this warning means, but does anyone know what is behind this? Are these just coding rules, readability issues, etc.?
, IDE/ , : = () == () , if, , , , , , .
=
==
if
, :
:
if ($variable == get_variable('variable')) { // ... }
- . Zend Studio , , , , . , . while, ( ). , .
while
, , . :
if ($variable = get_variable('variable') != false) { // ... }
, "="
if ($a = $b) { /* $a and $b equal? */ }
, IDE .
, , = ==.
, , .
if (($var = 1)) { /* ... */ }
Source: https://habr.com/ru/post/1776316/More articles:порядок и лимит с суммой ActiveRecord? - rubyfgetc (): Read and save a string of unknown length - cWhat is code injection in .net (as a programming skill)? - .netHow are instances resolved when child containers are used? - castle-windsorHow to get the full file path in Zend - phpAvailability Java Swing Shift + F10 - javacan you abort an Indy connection call? - delphiNeed voice recognition without google dialog - androidManaging log file location through JNDI in Spring? - javaMongoDB GridFS bucket? - c #All Articles