FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » JavaScript to PHP
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: JavaScript to PHP [message #185098 is a reply to message #185020] Wed, 26 February 2014 14:36 Go to previous message
Stan Weiss is currently offline  Stan Weiss
Messages: 3
Registered: October 2011
Karma:
Junior Member
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PHP script to get name of file which houses the script?
Next Topic: Completely stumped
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 01:57:06 GMT 2024

Total time taken to generate the page: 0.05244 seconds