Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 79ae8b6eb3
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (12 sloc) 0.262 kB
<?php
// Variable $x can be expressed as ${x} but phpcs doesn't detect that.
function foo( $bar ) {
print "${bar} things\n";
}
function bar( $x ) {
return 2 * ${x};
}
print 'Should say "14 things"' . "\n";
$fourteen = bar( 7 );
foo( $fourteen );
?>
Jump to Line
Something went wrong with that request. Please try again.