Divide is one of the arithmetic operators in php, which is represented by / (slash), for example: $x / $y, get $x and $y quotient.
Example: (Recommended learning: PHP programming from entry to proficiency)
<!DOCTYPE html> <html> <body> <?php $x = 17; $y = 8; echo $x / $y; ?> </body> </html>
Output:
2.125
The above is the detailed content of How to express division in php. For more information, please follow other related articles on the PHP Chinese website!