fork(1) download
  1. <?php
  2. function parse(string $text, $callback) {
  3. if (gettype($callback) == "array") echo "é um array\n";
  4. else echo $callback;
  5. }
  6. parse("xxx", array("yyy"));
  7. parse("xxx", "yyy");
  8.  
  9. //https://pt.stackoverflow.com/q/265984/101
Success #stdin #stdout 0.02s 23880KB
stdin
Standard input is empty
stdout
é um array
yyy