function FindVariance($Previous,$Current)
{
if ( is_numeric($Current) && is_numeric($Previous) ) {
$Difference = abs( $Current - $Previous );
}
if(Difference > $Current)
{
$this->CountChange = "-".$Difference;
}
elseif($Difference < $Current )
{
$this->CountChange = "+".$Difference;
}
else if(!is_numeric($Difference))
{
$this->CountChange=null;
}
else
{
$this->CountChange = $Difference;
}
return $this->CountChange;
}
function FindVariance($PreviousCount,$CurrentCount)
{
if ( is_numeric($CurrentCount) && is_numeric($PreviousCount) ) {
$Difference = abs( $CurrentCount - $PreviousCount );
}
if($Difference > $CurrentCount)
{
$this->CountChange = "-".$Difference;
}
elseif($Difference < $CurrentCount)
{
$this->CountChange = "+".$Difference;
}
else if(!is_numeric($Difference))
{
$this->CountChange=null;
}
else
{
$this->CountChange = $Difference;
}
return $this->CountChange;
}
function FindVariance($PreviousCount,$CurrentCount)
{
if ( is_numeric($CurrentCount) && is_numeric($PreviousCount) ) {
$Difference = abs( $CurrentCount - $PreviousCount );
}
if($Difference > $CurrentCount)
{
$this->CountChange = "-".$Difference;
}
else if($Difference < $CurrentCount)
{
$this->CountChange = "+".$Difference;
}
else if(!is_numeric($Difference))
{
$this->CountChange=null;
}
else
{
$this->CountChange = $Difference;
}
return $this->CountChange;
}
function FindVariance($PreviousCount,$CurrentCount)
{
if ( is_numeric($CurrentCount) && is_numeric($PreviousCount) ) {
$Difference = abs( $CurrentCount - $PreviousCount );
}
if($Difference < $CurrentCount)
{
$this->CountChange = "-".$Difference;
}
else if($Difference > $CurrentCount)
{
$this->CountChange = "+".$Difference;
}
else if(!is_numeric($Difference))
{
$this->CountChange=null;
}
else
{
$this->CountChange = $Difference;
}
return $this->CountChange;
}
function FindVariance($PreviousCount,$CurrentCount)
{
if ( is_numeric($CurrentCount) && is_numeric($PreviousCount) ) {
$Difference = ( $CurrentCount - $PreviousCount );
}
if($Difference < $CurrentCount)
{
$this->CountChange = "-".$Difference;
}
else if( $Difference < 0)
{
$this->CountChange = "+".abs ( $Difference );
}
else if(!is_numeric($Difference))
{
$this->CountChange=null;
}
else
{
$this->CountChange = $Difference;
}
return $this->CountChange;
}
Title | # Comments | Views | Activity |
---|---|---|---|
How do I access property of nested object in PHP? | 3 | 25 | |
How to install phpMyAdmin on AWS Elastic Beanstalk | 2 | 36 | |
Some question about 'error_reporting(E_ALL)' in php | 5 | 29 | |
Codiing Non-Existent Links | 4 | 30 |
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
10 Experts available now in Live!