Home >Backend Development >PHP Tutorial >Summary and troubleshooting of problems in PHP development_PHP tutorial
Questions in PHP development 1. How to use ord() and intval() functions in PHP?
The ord() function returns the ASCII code value of a character;
For intval(), if the parameter is a string, it returns the character before the first character in the string that is not a number. The integer value represented by the numeric string. If the first character in the string is ‘-’, counting starts from the second character.
If the parameter is a dotted number, its rounded value is returned.
Of course, the value returned by intval() is within the range that can be represented by a 4-byte range (-2147483648~2147483647). Values exceeding this range will be replaced by boundary values;
For example:
while (($row = mysql_fetch_assoc($result)) != false)
This way there will be no prompts
PHP development Question 3. Form submission to this page?