PHP Error

$valOne variable has string type value and $valTwo variable has original value. I calculated them and did not find error as I excepted.

$valOne = “100”; //defined variable as string.
$valTwo = 6; //defined variable as value.
$calOfVals = $valOne …


This content originally appeared on DEV Community and was authored by Falak

$valOne variable has string type value and $valTwo variable has original value. I calculated them and did not find error as I excepted.

$valOne = "100"; //defined variable as string.
$valTwo = 6;    //defined variable as value.
$calOfVals = $valOne / $valTwo; //applied division.
echo $calOfVals; //output: 16.666666666667.


This content originally appeared on DEV Community and was authored by Falak


Print Share Comment Cite Upload Translate Updates
APA

Falak | Sciencx (2024-08-17T04:33:50+00:00) PHP Error. Retrieved from https://www.scien.cx/2024/08/17/php-error/

MLA
" » PHP Error." Falak | Sciencx - Saturday August 17, 2024, https://www.scien.cx/2024/08/17/php-error/
HARVARD
Falak | Sciencx Saturday August 17, 2024 » PHP Error., viewed ,<https://www.scien.cx/2024/08/17/php-error/>
VANCOUVER
Falak | Sciencx - » PHP Error. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/17/php-error/
CHICAGO
" » PHP Error." Falak | Sciencx - Accessed . https://www.scien.cx/2024/08/17/php-error/
IEEE
" » PHP Error." Falak | Sciencx [Online]. Available: https://www.scien.cx/2024/08/17/php-error/. [Accessed: ]
rf:citation
» PHP Error | Falak | Sciencx | https://www.scien.cx/2024/08/17/php-error/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.