<?php
function parse(string $text, $callback) {
if (gettype($callback) == "array") echo "é um array\n"; else echo $callback;
}
parse
("xxx", array("yyy"));parse("xxx", "yyy");
//https://pt.stackoverflow.com/q/265984/101
PD9waHAKZnVuY3Rpb24gcGFyc2Uoc3RyaW5nICR0ZXh0LCAkY2FsbGJhY2spIHsKCWlmIChnZXR0eXBlKCRjYWxsYmFjaykgPT0gImFycmF5IikgZWNobyAiw6kgdW0gYXJyYXlcbiI7CiAgICBlbHNlIGVjaG8gJGNhbGxiYWNrOwp9CnBhcnNlKCJ4eHgiLCBhcnJheSgieXl5IikpOwpwYXJzZSgieHh4IiwgInl5eSIpOwoKLy9odHRwczovL3B0LnN0YWNrb3ZlcmZsb3cuY29tL3EvMjY1OTg0LzEwMQ==