Click here to Skip to main content
15,896,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to convert form value to int and store in variable "PHP"
i am using this one
$marks=(int)$_POST['marks'];
help??????
Posted

1 solution

hi, php does not has explicit datatypes, just use like:
PHP
$marks=$_POST['marks'];
and it will tells you when you check the datatype like
PHP
echo"\$marks=";var_dump($marks);echo "<br />";
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900