USING POW with variable

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Roger45
New php-forum User
New php-forum User
Posts: 1
Joined: Tue Nov 20, 2012 11:02 am

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

seandisanti
php-forum Fan User
php-forum Fan User
Posts: 838
Joined: Mon Oct 01, 2012 12:32 pm

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


Return to “PHP coding => General”

Who is online

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

cron