note 50774 added to function.sqrt

From: Date: Wed, 09 Mar 2005 16:43:43 +0000
Subject: note 50774 added to function.sqrt
Groups: php.notes 
Request: Send a blank email to php-notes+get-86158@lists.php.net to get a copy of this message
to php at primezero dot com: why don't you just do it a lot more simpler. You don't need any sqare roots or regular expression, just pow(value,2). Then you can just replace value with the numbers 1 to how many numbers you want to get. The code could look like this: <?php for($x = 1; $x < 101; $x++) { $val = pow($x, 2); echo "$val <br>"; } ?> ---- Manual Page -- http://www.php.net/manual/en/function.sqrt.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50774 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50774&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50774&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50774&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50774&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50774&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50774&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#86158) next »