downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

SPL> <parsekit_compile_string
[edit] Last updated: Fri, 17 May 2013

view this page in

parsekit_func_arginfo

(PECL parsekit >= 0.3.0)

parsekit_func_arginfoRetorna informação de argumento(s) de uma função

Descrição

array parsekit_func_arginfo ( mixed $function )
Aviso

Esta função é EXPERIMENTAL. O comportamento desta função, seu nome, incluindo toda documentação pode ser modificado sem aviso em futuras versões do PHP. Esta função deve ser usada por sua própria conta e risco.

Parâmetros

function

Uma string descrevendo uma função, ou um array descrevendo uma classe/método.

Valor Retornado

Retorna um array contendo informação dos argumentos.

Exemplos

Exemplo #1 parsekit_func_arginfo() example

<?php
function foo($barstdClass $baz, &$bomb$bling false) {
}

var_dump(parsekit_func_arginfo('foo'));
?>

O exemplo acima irá imprimir:

array(4) {
  [0]=>
  array(3) {
    ["name"]=>
    string(3) "bar"
    ["allow_null"]=>
    bool(true)
    ["pass_by_reference"]=>
    bool(false)
  }
  [1]=>
  array(4) {
    ["name"]=>
    string(3) "baz"
    ["class_name"]=>
    string(8) "stdClass"
    ["allow_null"]=>
    bool(false)
    ["pass_by_reference"]=>
    bool(false)
  }
  [2]=>
  array(3) {
    ["name"]=>
    string(4) "bomb"
    ["allow_null"]=>
    bool(true)
    ["pass_by_reference"]=>
    bool(true)
  }
  [3]=>
  array(3) {
    ["name"]=>
    string(5) "bling"
    ["allow_null"]=>
    bool(true)
    ["pass_by_reference"]=>
    bool(false)
  }
}



add a note add a note User Contributed Notes parsekit_func_arginfo - [1 notes]
up
-1
fantasysportswire at yahoo dot com
6 years ago
Should be noted that this is for user defined functions only.  Not internal (extension or otherwise).

 
show source | credits | stats | sitemap | contact | advertising | mirror sites