Skip to main content
Code Review

Return to Answer

replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

From here here:

If there are only 3 possibilities, you could do this:

$id = $row['best'] or $id = $row['average'] or $id = $row['bad'];

This is the closest that PHP can come to JS short circuit assignments.

From here:

If there are only 3 possibilities, you could do this:

$id = $row['best'] or $id = $row['average'] or $id = $row['bad'];

This is the closest that PHP can come to JS short circuit assignments.

From here:

If there are only 3 possibilities, you could do this:

$id = $row['best'] or $id = $row['average'] or $id = $row['bad'];

This is the closest that PHP can come to JS short circuit assignments.

Source Link
konijn
  • 34.2k
  • 5
  • 70
  • 267

From here:

If there are only 3 possibilities, you could do this:

$id = $row['best'] or $id = $row['average'] or $id = $row['bad'];

This is the closest that PHP can come to JS short circuit assignments.

lang-php

AltStyle によって変換されたページ (->オリジナル) /