Jump to content

PHPDocumentor Parameter pass by reference tag


Mark Baker

Recommended Posts

I have the following method defined in one of my classes, and I'm trying to do the PHPDocumentor tags

/**
* Identify whether a string contains a fractional numeric value,
*    and convert it to a numeric if it is
*
* @param string $operand string value to test
* @return boolean
*/
public static function convertToNumberIfFraction(&$operand) {
if (preg_match('/^'.self::STRING_REGEXP_FRACTION.'$/i', $operand, $match)) {
	$fractionFormula = '='.$match[1].'+'.$match[2];
	$operand = PHPExcel_Calculation::getInstance()->_calculateFormulaValue($fractionFormula);
	return true;
}
return false;
}	//	function convertToNumberIfFraction()

What I can't find anywhere in the PHPDocumentor documentation is how to identify that a parameter is pass by reference. Does anybody have a solution to this?

  • 2 weeks later...
dude try this!! www.phpscriptor.com
A pretty empty site (links to www.php.net, pear and smarty; and a copy of the PHP manual) doesn't really qualify as a useful site.

 

Have you ever actually posted a real response to anybody's question here on PHPFreaks or on any other forum, or is it always just links to try and promote your empty site?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.