note 80834 added to ref.math

From: Date: Sat, 02 Feb 2008 15:24:56 +0000
Subject: note 80834 added to ref.math
Groups: php.notes 
Request: Send a blank email to php-notes+get-135734@lists.php.net to get a copy of this message
Wouldn't the following function do the same but a lot easier than the one in the comment before? function trimInteger($targetNumber,$newLength) { return $targetNumber%pow(10,$newLength); } ---- Server IP: 217.13.201.10 Probable Submitter: 80.141.192.4 ---- Manual Page -- http://www.php.net/manual/en/ref.math.php Edit -- https://master.php.net/note/edit/80834 Del: integrated -- https://master.php.net/note/delete/80834/integrated Del: useless -- https://master.php.net/note/delete/80834/useless Del: bad code -- https://master.php.net/note/delete/80834/bad+code Del: spam -- https://master.php.net/note/delete/80834/spam Del: non-english -- https://master.php.net/note/delete/80834/non-english Del: in docs -- https://master.php.net/note/delete/80834/in+docs Del: other reasons-- https://master.php.net/note/delete/80834 Reject -- https://master.php.net/note/reject/80834 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#135734) next »