With the following code:
$a=1;
$b=1;
echo $a."%".$b." maradéka: "." = ".$a % $b."<br>";
echo $a."+".$b." összege: "." = ".$a + $b."<br>";
I get this output:
1%1 maradéka: = 0
2
As you can see, the + syntax is the same as the % but it doesn't echo the text before the operation. Maybe I'm too tired or i don't know, but i can't figure it out :D I've built dynamic web pages so far, but this one got me.
1+1 összege: = 1
is typecast to an int1
and then1+1
. – Adhesion