PHP Classes

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

Recommend this page to a friend!
  Classes of Alex Krash   PHP Code formatter   phpcf-src/test/expected/anonymous.php   Download  
File: phpcf-src/test/expected/anonymous.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: 9 years ago
Size: 278 bytes
 

Contents

Class file image Download
<?php

$empty_func
= function($a) {};

$new_arr = array_map(function($a) { return $a[0]; }, $argv);

$callback = function($b) { return $b['id']; };

$long_callback = function($c) use ($d, &$e) {
    return
$c['id'];
};

function
doSomething($a, $b)
{
    echo
'Hello world!';
}