Jump to content

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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.