Jump to content

[SOLVED] Little error


Raiso

Recommended Posts

No thats not the problem,

 

The problem is (INT) i think

 

lmao, whatever you say man. I do not know what I am doing and I obviously do not know how to read an error. Humor me and before you divide by zero echo out $banks and see what is printed out.

 

EDIT:

And for giggles I ran this just fine:

<?php
$totalb = 5;
$banks = 2;
$avgb=(int) ($totalb/$banks);

echo "Avgb: " . $avgb;
die();
?>

Link to comment
https://forums.phpfreaks.com/topic/141382-solved-little-error/#findComment-740048
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.