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

search for in the

ReflectionFunctionAbstract> <ReflectionFunction::isDisabled
[edit] Last updated: Sat, 25 May 2013

view this page in

ReflectionFunction::__toString

(PHP 5)

ReflectionFunction::__toStringConvertir a string

Descripción

public string ReflectionFunction::__toString ( void )

Convierte a string.

Parámetros

Esta función no tiene parámetros.

Valores devueltos

Devuelve una salida similar a la de ReflectionFunction::export().

Ejemplos

Ejemplo #1 Ejemplo de ReflectionFunction::__toString()

<?php
function titulo($titulo$nombre)
{
    return 
sprintf("%s. %s\r\n"$titulo$nombre);
}

echo new 
ReflectionFunction('titulo');
?>

El resultado del ejemplo sería algo similar a:

Function [ <user> function titulo ] {
  @@ Command line code 2 - 5

  - Parameters [2] {
    Parameter #0 [ <required> $titulo ]
    Parameter #1 [ <required> $nombre ]
  }
}

Ver también



add a note add a note User Contributed Notes ReflectionFunction::__toString - [0 notes]
There are no user contributed notes for this page.

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