Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

USING POW with variable

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

USING POW with variable

Postby Roger45 » Tue Nov 20, 2012 11:23 am

POW(8/1/3) =2

$a=8 ;
b$=POW($a/1/3) - error occurs
Please advise - new to PHP and 1st post
Roger45
New php-forum User
New php-forum User
 
Posts: 1
Joined: Tue Nov 20, 2012 11:02 am

Re: USING POW with variable

Postby seandisanti » Tue Nov 20, 2012 12:40 pm

error should occur in the first attempt also since you're passing the wrong number of parameters. check out php.net/pow
seandisanti
php-forum Fan User
php-forum Fan User
 
Posts: 838
Joined: Mon Oct 01, 2012 12:32 pm


Return to PHP coding => General

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.