Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #12996

Re: JavaScript to PHP

From Stan Weiss <srweiss@erols.com>
Newsgroups comp.lang.php
Subject Re: JavaScript to PHP
Date 2014-02-26 09:36 -0500
Organization Aioe.org NNTP Server
Message-ID <530DFBEA.5B309CF2@erols.com> (permalink)
References <530B6D17.D197CFBF@erols.com> <530b7078$0$9519$9b4e6d93@newsspool1.arcor-online.net>

Show all headers | View raw


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] <http://www.php.net/manual/>
> [1] <http://www.php.net/manual/function.pow.php>
> [2] <https://wiki.php.net/rfc/pow-operator>
> 
> --
> Christoph M. Becker

Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

JavaScript to PHP Stan Weiss <srweiss@erols.com> - 2014-02-24 11:02 -0500
  Re: JavaScript to PHP Christoph Michael Becker <cmbecker69@arcor.de> - 2014-02-24 17:16 +0100
    Re: JavaScript to PHP Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-02-24 18:27 +0100
      Re: JavaScript to PHP Christoph Michael Becker <cmbecker69@arcor.de> - 2014-02-24 19:47 +0100
    Re: JavaScript to PHP Stan Weiss <srweiss@erols.com> - 2014-02-26 09:36 -0500

csiph-web