Examples with types [closed]

1

Hello, I'm trying to understand some of the PHP documentation and I'm not getting it. I want to understand the part that talks about comparing with various types.

See more at this link: link in the comparison with various types , I do not understand the examples, could you give examples with code written in php how do you do what is written in the documentation (if based on the documentation)?

I did so in IDEONE of the first example and the result was not as written in the documentation.

Example:

<?php
$palavra = NULL;
$palavra2 = "Pão";

if($r = $palavra == $palavra2) {
var_dump($r);
} else {
var_dump($r);
}

?>

It was not the result that the documentation says, could of the examples of some of those models for me to understand.

I wanted to understand these PHP documentation. I use PHP 7 and I'm starting in the PHP world, but I've known PHP for quite some time, but now I'm starting to program it.

    
asked by anonymous 17.09.2017 / 16:24

0 answers