PHP 8.5.0 Alpha 1 available for testing

Voting

: max(six, three)?
(Example: nine)

The Note You're Voting On

hexidecimalgadget at hotmail dot com
16 years ago
If you attempt to add numbers with a concatenation operator, your result will be the result of those numbers as strings.

<?php

echo "thr"."ee"; //prints the string "three"
echo "twe" . "lve"; //prints the string "twelve"
echo 1 . 2; //prints the string "12"
echo 1.2; //prints the number 1.2
echo 1+2; //prints the number 3

?>

<< Back to user notes page

To Top