0

I give the PHP certain string to the var_dump command. But it outputs different string in the browser. First time see something like this, such a strange behaviour. I wonder if it is some security thing or other mechanics...

I tried doing var_dump, echo, var_dump mixed with utf8_encode, utf8_decode... don't remember all the functions

die(var_dump('WC"Pk/()@zg?mwUh+hjs\'R5<!#UcA.MJ!?n&ye7<V=H>A[qRb~N[-{6S:ak4yXG`Afd]7f$#e`r%3aU5sb"[vXHhveH-s3W/c+:"'));

Actual result in the browser is WC"Pk/()@zg?mwUh+hjs'R5A[qRb~N[-{6S:ak4yXGAfd]7f$#er%3aU5sb"[vXHhveH-s3W/c+:"

But it should be WC"Pk/()@zg?mwUh+hjs\'R5<!#UcA.MJ!?n&ye7<V=H>A[qRb~N[-{6S:ak4yXGAfd]7f$#er%3aU5sb"[vXHhveH-s3W/c+:" exactly as given in var_dump...

var_dump

strange result

0 Answers0