Why is in PHP this code snippet returning no readable output,
$string = "<Hello World!";
var_dump($string);
but this
$string = ">Hello World!";
var_dump($string);
is returning
">Hello World!"
Why is in PHP this code snippet returning no readable output,
$string = "<Hello World!";
var_dump($string);
but this
$string = ">Hello World!";
var_dump($string);
is returning
">Hello World!"
Copyright © 2021 Jogjafile Inc.
It's seems that you dump this var in html file and browser parse this:
as
This snippet
can't be parsed as html tag, so you can get readable output.