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, 30 Nov 2012

view this page in

parsekit_func_arginfo

(PECL parsekit >= 0.3.0)

parsekit_func_arginfoReturn information regarding function argument(s)

Opis

array parsekit_func_arginfo ( mixed $function )
Ostrzeżenie

Ta funkcja jest w stadium EKSPERYMENTALNYM. Oznacza to, że zachowanie funkcji, jej nazwa, w zasadzie wszystko udokumentowane tutaj może zostać zmienione w przyszłych wersjach PHP bez wcześniejszego uprzedzenia. Używaj tej funkcji na własne ryzyko.

Parametry

function

A string describing a function, or an array describing a class/method.

Zwracane wartości

Returns an array containing argument information.

Przykłady

Przykład #1 parsekit_func_arginfo() example

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

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

Powyższy przykład wyświetli:

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