why would this be?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
southeastweb
Forum Newbie
Posts: 14
Joined: Sun Mar 21, 2004 3:28 am
Location: Florida

why would this be?

Post by southeastweb »

25 is is being returned here, with proper result should be 1
?? does anyone know why?

$a = '25';
$b = '25';

$prob4 = $a /= $b; //$a = $a / $b

thanks in advance, maybe im just missing something totally! :(
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

southeastweb
Forum Newbie
Posts: 14
Joined: Sun Mar 21, 2004 3:28 am
Location: Florida

Thanks!

Post by southeastweb »

Thanks for the reply. I have pretty much every PHP related site bookmarked, and use them along with books to locate answers and resolve problems, this specific one wasn't adding up, and according to all my material, my answer should have come to the proper one. It just really threw me off, I must be doing something wrong, I will run the comment. Thanks, Jason
Post Reply