PHP Classes

File: phpcf-src/test/expected/ternary.php

Recommend this page to a friend!
  Classes of Alex Krash  >  PHP Code formatter  >  phpcf-src/test/expected/ternary.php  >  Download  
File: phpcf-src/test/expected/ternary.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: PHP Code formatter
Reformat PHP code according to standard options
Author: By
Last change:
Date: 8 years ago
Size: 178 bytes


Class file image Download
= $User ? ($em['id'] == $User->getField('manager_id') ? 'selected' : '') : '';

$a = $b ?: $c;
// leave compatibility with old behaviour as well
$a = $b ? : $c;

For more information send a message to info at phpclasses dot org.