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


Groups > comp.lang.php > #12917 > unrolled thread

JavaScript to PHP

Started byStan Weiss <srweiss@erols.com>
First post2014-02-24 11:02 -0500
Last post2014-02-26 09:36 -0500
Articles 5 — 3 participants

Back to article view | Back to comp.lang.php


Contents

  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

#12917 — JavaScript to PHP

FromStan Weiss <srweiss@erols.com>
Date2014-02-24 11:02 -0500
SubjectJavaScript to PHP
Message-ID<530B6D17.D197CFBF@erols.com>
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. Can someone help me out. What would I replace
Math.POW with?

ans1 = c7 + c8 + c9 + c10 + c11
c12 = ( Math.pow(10.0, ans1))

Thanks,
Stan

[toc] | [next] | [standalone]


#12918

FromChristoph Michael Becker <cmbecker69@arcor.de>
Date2014-02-24 17:16 +0100
Message-ID<530b7078$0$9519$9b4e6d93@newsspool1.arcor-online.net>
In reply to#12917
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

[toc] | [prev] | [next] | [standalone]


#12921

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2014-02-24 18:27 +0100
Message-ID<4634888.8ppWW5z7kP@PointedEars.de>
In reply to#12918
Christoph Michael Becker wrote:

> Stan Weiss wrote:
>>                     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]

The latest stable PHP version is 5.5.9. [1]  PHP 5.6.0*alpha2* was released 
on 2014-02-13. [2]  It is not a good idea to speak of future software 
versions as something that is carved in stone.

[1] <http://php.net/downloads>
[2] <http://php.net/>
 
> [2] <https://wiki.php.net/rfc/pow-operator>

You got your footnotes mixed.


PointedEars
-- 
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee

[toc] | [prev] | [next] | [standalone]


#12922

FromChristoph Michael Becker <cmbecker69@arcor.de>
Date2014-02-24 19:47 +0100
Message-ID<530b93cb$0$9508$9b4e6d93@newsspool1.arcor-online.net>
In reply to#12921
Thomas 'PointedEars' Lahn wrote:

> Christoph Michael Becker wrote:
> 
>> Stan Weiss wrote:
>>>                     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]
> 
> The latest stable PHP version is 5.5.9. [1]  PHP 5.6.0*alpha2* was released 
> on 2014-02-13. [2]  It is not a good idea to speak of future software 
> versions as something that is carved in stone.

ACK.  I should have used at least future tense.

> [1] <http://php.net/downloads>
> [2] <http://php.net/>
>  
>> [2] <https://wiki.php.net/rfc/pow-operator>
> 
> You got your footnotes mixed.

Sorry.

-- 
Christoph M. Becker

[toc] | [prev] | [next] | [standalone]


#12996

FromStan Weiss <srweiss@erols.com>
Date2014-02-26 09:36 -0500
Message-ID<530DFBEA.5B309CF2@erols.com>
In reply to#12918
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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web