note 89618 deleted from function.abs by danbrown
| From: | danbrown@php.net | Date: | Tue, 17 Mar 2009 03:00:04 +0000 |
| Subject: | note 89618 deleted from function.abs by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-152018@lists.php.net to get a copy of this message | ||
Note Submitter: Akshit Soota
----
I suppose the real coding of this function is:-
functions abs($inte)
{
if (!is_numeric($inte)) { return false; }
if ( $inte < 0 ) { return ((0) - ($inte)); }
if ( $inte > 0 ) { return ($inte); }
if ( $inte == 0 ) { return (0); }
}
I hope this makes sense.