PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/tests/php/semantic/empty.php

https://github.com/llvm-djk/pfff
PHP | 12 lines | 5 code | 3 blank | 4 comment | 2 complexity | 10a4893c91513e0f6f86ccea16ea1831 MD5 | raw file
 1<?php
 2
 3// http://php.net/manual/en/function.empty.php
 4// empty() does not generate a warning if the variable does not exist. 
 5
 6// undefined variable error
 7if($foo) {
 8}
 9
10// no error
11if (empty($foo)) {
12}