Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!aioe.org!.POSTED!not-for-mail From: Stan Weiss Newsgroups: comp.lang.php Subject: Re: JavaScript to PHP Date: Wed, 26 Feb 2014 09:36:26 -0500 Organization: Aioe.org NNTP Server Lines: 31 Message-ID: <530DFBEA.5B309CF2@erols.com> References: <530B6D17.D197CFBF@erols.com> <530b7078$0$9519$9b4e6d93@newsspool1.arcor-online.net> NNTP-Posting-Host: 2ifjlkPmCExjqLSDCEOrLw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.php:12996 Christoph, Thank You. Stan Christoph Michael Becker wrote: > > Stan Weiss wrote: > > > Over the years I have written a number of JavaScript. The past couple of > > years I have been rewriting a few in PHP. I do not have any good PHP > > reference material. > > Well, you can use the PHP manual.[1] > > > Can someone help me out. What would I replace > > Math.POW with? > > > > ans1 = c7 + c8 + c9 + c10 + c11 > > c12 = ( Math.pow(10.0, ans1)) > > Just use the pow() function.[2] Since PHP 5.6 there's even an operator > (**) available.[3] > > [1] > [1] > [2] > > -- > Christoph M. Becker